mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 13:28:05 +02:00
19 lines
255 B
ObjectPascal
19 lines
255 B
ObjectPascal
{ %FAIL }
|
|
|
|
program tfuncref14;
|
|
|
|
{$mode objfpc}{$H+}
|
|
{$modeswitch functionreferences}
|
|
|
|
uses
|
|
ufuncref10;
|
|
|
|
var
|
|
l: LongInt;
|
|
i: ITestFunc7;
|
|
begin
|
|
{ if it doesn't inherit from a function reference then it can't be called
|
|
directly }
|
|
l := i();
|
|
end.
|