pascalabcnet/TestSuite/inheritanceFromListStudent.pas

13 lines
190 B
ObjectPascal
Raw Normal View History

2018-05-07 14:21:01 +03:00
type
Student = class
name: string;
end;
MyList<T> = class(List<T>)
public
end;
begin
var l := new MyList<Student>;
l.Add(new Student);
Assert(l.IndexOf(l[0])=0);
end.