fpc/tests/test/tcustomattr17.pp
svenbarth e97a2cb03e * tests with Delphi showed that an attribute class must explicitely declare a parameterless constructor if it should be used, cause TCustomAttribute.Create is private
Note: this also means that TCustomAttribute itself can not be used as an attribute
* adjusted existing tests
+ added test

git-svn-id: trunk@42471 -
2019-07-20 20:03:38 +00:00

23 lines
233 B
ObjectPascal

{ %FAIL }
program tcustomattr17;
{$mode objfpc}
{$modeswitch prefixedattributes}
type
TTest = class(TCustomAttribute)
constructor Create;
end;
[TTest]
Int = Integer;
constructor TTest.Create;
begin
end;
begin
end.