14 lines
160 B
ObjectPascal
14 lines
160 B
ObjectPascal
|
|
type
|
|||
|
|
t0<T> = class
|
|||
|
|
procedure p1 := exit;
|
|||
|
|
end;
|
|||
|
|
|
|||
|
|
t1 = class
|
|||
|
|
function f1<T>: t0<T> := nil;
|
|||
|
|
end;
|
|||
|
|
|
|||
|
|
begin
|
|||
|
|
var b := new t1;
|
|||
|
|
b.f1.p1;
|
|||
|
|
|
|||
|
|
end.
|