mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 15:49:04 +02:00

Note: this also means that TCustomAttribute itself can not be used as an attribute * adjusted existing tests + added test git-svn-id: trunk@42471 -
25 lines
319 B
ObjectPascal
25 lines
319 B
ObjectPascal
{ %FAIL }
|
|
|
|
program tcustomattr22;
|
|
|
|
{$mode objfpc}
|
|
{$modeswitch prefixedattributes}
|
|
|
|
type
|
|
TTestAttribute = class(TCustomAttribute)
|
|
constructor Create(aArg: LongInt);
|
|
end;
|
|
|
|
[TTestAttribute(42), TTestAttribute]
|
|
TMyTest = class
|
|
|
|
end;
|
|
|
|
constructor TTestAttribute.Create(aArg: LongInt);
|
|
begin
|
|
|
|
end;
|
|
|
|
begin
|
|
end.
|