mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-05 18:00:18 +02:00
19 lines
277 B
ObjectPascal
19 lines
277 B
ObjectPascal
{ %FAIL }
|
|
|
|
program tfuncref12;
|
|
|
|
{$mode objfpc}{$H+}
|
|
{$modeswitch functionreferences}
|
|
|
|
uses
|
|
ufuncref10;
|
|
|
|
var
|
|
l: LongInt;
|
|
i: ITestFunc4;
|
|
begin
|
|
{ both are available, but since overloads by result type are not possible
|
|
only the last one is available }
|
|
l := i();
|
|
end.
|