tests added

This commit is contained in:
Terky 2019-05-18 16:34:30 +03:00
parent 69826046b1
commit dac1bbe3b9
2 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,24 @@
type
t1 = class
static a: integer := 1;//не обязательно статичное поле
procedure p1;
begin
var a := 2;
var p: procedure := ()->begin
Assert(a=2);
end;
p;
end;
end;
begin
(new t1).p1;
end.

View file

@ -0,0 +1,24 @@
type
t1 = class
b: byte;
static procedure p1(b: byte);
begin
var p: procedure;
p := ()->
begin
p := ()->
begin
b := b;
end;
end;
end;
end;
begin
Assert(1=1);
end.