mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 01:30:28 +02:00
21 lines
302 B
ObjectPascal
21 lines
302 B
ObjectPascal
{$mode delphi}
|
|
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.
|