mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-01-23 22:48:25 +01:00
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 -
20 lines
246 B
ObjectPascal
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.
|
|
|