fpc/tests/tbf/tb0216.pp
Jonas Maebe c6733ed9a5 * disallow placing fields after method/property definitions, because this
can create ambiguities for the parser in case the field names also exist
    as modifiers (TP- and Delphi-compatible, mantis #13971) + tests
  * fixed tests that broke because of this change

git-svn-id: trunk@13334 -
2009-06-27 12:59:46 +00:00

20 lines
246 B
ObjectPascal

{ %fail }
{ Old file: tbs0133.pp }
{ object type declaration not 100% compatibile with TP7 }
type
t=object
f : longint;
procedure p;
g : longint; { Not allowed in BP7 }
end;
procedure t.p;
begin
end;
begin
end.