fpc/tests/test/jvm/tprocvaranon.pp
Jonas Maebe c4b347c271 * support anonymous procvar definitions for jvm outside parameter lists (in a
parameter list they represent nested procvars, which aren't supported yet)

git-svn-id: trunk@32454 -
2015-11-22 10:52:20 +00:00

21 lines
225 B
ObjectPascal

program tprocvaranon;
type
tprocvaranonrec = record
p: function: longint;
end;
function test: longint;
begin
test:=123;
end;
var
r: tprocvaranonrec;
begin
r.p:=@test;
if r.p()<>123 then
halt(1);
end.