mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-22 01:18:32 +02:00
23 lines
268 B
ObjectPascal
23 lines
268 B
ObjectPascal
{ %fail }
|
|
program tcustomattr3;
|
|
|
|
{$mode objfpc}{$H+}
|
|
{$modeswitch prefixedattributes}
|
|
|
|
type
|
|
|
|
{ tmyt }
|
|
|
|
tmyt = class
|
|
constructor create;
|
|
end;
|
|
|
|
// tmyt is not a TCustomAttribute, so this should fail.
|
|
[tmyt]
|
|
TMyObject = class(TObject)
|
|
end;
|
|
|
|
begin
|
|
end.
|
|
|