pascalabcnet/TestSuite/formatter_tests/should/generics1.pas
Бондарев Иван 1742140d85 fix #839
2018-05-20 11:37:43 +02:00

22 lines
318 B
ObjectPascal

type
list<T> = class
function a: list<T>;
begin
result := self;
assert(result = self);
end;
function b: list<T>;
end;
function list<T>.b: list<T>;
begin
result := self;
assert(result = self);
end;
begin
var lst: list<integer> := new list<integer>;
lst.a;
lst.b;
end.