pascalabcnet/TestSuite/nested5.pas

19 lines
198 B
ObjectPascal
Raw Normal View History

2022-09-04 16:40:25 +03:00
var i: integer;
type
t1 = class
static procedure p1;
end;
static procedure t1.p1;
function f(b: byte) := b;
begin
f(0);
i := 1;
end;
begin
t1.p1;
assert(i = 1);
end.