pascalabcnet/TestSuite/with1.pas

17 lines
231 B
ObjectPascal
Raw Permalink Normal View History

type TClass = class
2016-05-29 12:27:25 +03:00
a: integer;
end;
begin
var obj := new TClass;
with obj do
begin
a := 2;
assert(a = 2);
end;
var lst := Lst(1,2,3);
with lst do
begin
assert(Count = 3);
end;
end.