pascalabcnet/TestSuite/errors/err0390.pas

23 lines
279 B
ObjectPascal
Raw Permalink Normal View History

2020-12-28 20:16:22 +03:00
type
t0 = abstract class end;
t1<T> = class
where T: t0;
procedure p1(x: byte);
begin
var p: Action0 := ()->
begin
Writeln(x);
Writeln(new T);
end;
p();
end;
end;
begin end.