mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 04:08:06 +02:00

parameters that do not appear in forward/interface definitions (mantis #19434) * added test for #17136 already works git-svn-id: trunk@21524 -
29 lines
352 B
ObjectPascal
29 lines
352 B
ObjectPascal
{ %norun }
|
|
|
|
unit tw19434b;
|
|
{$ifdef fpc}
|
|
{$mode delphi}
|
|
{$endif}
|
|
|
|
interface
|
|
|
|
type
|
|
tintf = interface
|
|
procedure connect(s: string; port: longint = 23);
|
|
end;
|
|
|
|
tc = class(tinterfacedobject,tintf)
|
|
procedure connect(s: string; port: longint);
|
|
end;
|
|
|
|
|
|
implementation
|
|
|
|
|
|
procedure tc.connect(s: string; port: longint);
|
|
begin
|
|
end;
|
|
|
|
end.
|
|
|