fpc/tests/test/tcustomattr7.pp
2019-07-12 22:05:12 +00:00

40 lines
432 B
ObjectPascal

{ %fail }
program tcustomattr7;
{$mode objfpc}{$H+}
{$modeswitch prefixedattributes}
uses
typinfo;
type
{ tmyt }
TMyt = class(TCustomAttribute)
constructor create;
end;
type
{ TMyObject }
TMyObject = class(TObject)
private
FInt: integer;
published
// Should fail because there is nothing to bind the custom attribute to.
[TMyt]
end;
constructor TMyt.create;
begin
//
end;
begin
//
end.