pascalabcnet/TestSuite/lambdas23.pas
Ivan Bondarev a969d6de9c #3063
2024-03-26 21:49:51 +01:00

21 lines
265 B
ObjectPascal

var j := 0;
type
t1 = class
static property prop1: integer read 1;
static constructor;
begin
var p := ()->
begin
j := prop1;
end;
p;
end;
end;
begin
var i := t1.prop1;
assert(j = 1);
end.