pascalabcnet/TestSuite/generics1.pas
Бондарев Иван e6e67c193c initial commit
2015-05-14 21:35:07 +02:00

21 lines
284 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.