fpc/tests/tbf/tb0096.pp
2000-12-17 13:59:50 +00:00

26 lines
437 B
ObjectPascal

{ %FAIL }
{ derived from source for Bug Report 1203 }
{ in FPC mode this shouldn't compile }
{$mode objfpc}
type
someprocedureofobjectype=procedure (sender:tobject) OF OBJECT;
a=class
protected
fondisplay : someprocedureofobjectype;
public
a:longint;
end;
b=class(A)
protected
fondisplay : someprocedureofobjectype;
public
a:longint;
end;
begin
end.