pascalabcnet/TestSuite/operators2.pas

13 lines
176 B
ObjectPascal
Raw Permalink Normal View History

2022-06-16 14:48:15 +03:00
type
t1 = class
static function operator=(a,b: t1) := true;
end;
t2 = class(t1) end;
begin
var a := new t2;
var b := new t2;
assert(a = b);
end.