mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 13:28:05 +02:00
19 lines
279 B
ObjectPascal
19 lines
279 B
ObjectPascal
{ %FAIL }
|
|
|
|
program tfuncref15;
|
|
|
|
{$mode delphi}{$H+}
|
|
{$modeswitch functionreferences}
|
|
|
|
uses
|
|
ufuncref10;
|
|
|
|
var
|
|
l: LongInt;
|
|
i: ITestFunc8;
|
|
begin
|
|
{ Delphi mode calls ITestFunc8.Invoke and thus would try to apply Foobar to
|
|
the result type LongInt }
|
|
l := if8.Foobar;
|
|
end.
|