pascalabcnet/TestSuite/errors/err0439.pas

18 lines
340 B
ObjectPascal
Raw Permalink Normal View History

2021-10-31 13:44:21 +03:00
//!Нельзя преобразовать тип t0<t0<t2<byte>>> к t1
var i: integer;
type
t0<T> = class end;
t2<T> = class end;
t1 = class
static function operator implicit<T>(a: t0<t0<t0<T>>>): t1; where T: record;
begin
i := 1;
end;
end;
begin
var a: t0<t0<t2<byte>>>;
var k: t1 := a;
end.