mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-11 14:23:25 +02:00
22 lines
312 B
ObjectPascal
22 lines
312 B
ObjectPascal
{ %FAIL }
|
|
{$mode objfpc}
|
|
type
|
|
tc1 = class
|
|
l : longint;
|
|
property p : longint read l;
|
|
end;
|
|
|
|
tc2 = class(tc1)
|
|
{ in Delphi mode }
|
|
{ parameters can have the same name as properties }
|
|
procedure p1(p : longint);
|
|
end;
|
|
|
|
procedure tc2.p1(p : longint);
|
|
|
|
begin
|
|
end;
|
|
|
|
begin
|
|
end.
|