mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 14:09:29 +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 -
24 lines
267 B
ObjectPascal
24 lines
267 B
ObjectPascal
{ %FAIL }
|
|
|
|
program tcustomattr9;
|
|
|
|
{$mode objfpc}{$H+}
|
|
{$modeswitch prefixedattributes}
|
|
|
|
uses
|
|
typinfo;
|
|
|
|
type
|
|
{ tmyt }
|
|
// TCustomAttribute's constructor is private!
|
|
tmyt = class(TCustomAttribute);
|
|
|
|
type
|
|
[Tmyt]
|
|
TMyObject = class(TObject)
|
|
end;
|
|
|
|
begin
|
|
end.
|
|
|