pascalabcnet/TestSuite/intellisense_tests/operators2.pas
Бондарев Иван ad2de7696f bug fix #794
2018-05-03 20:04:00 +02:00

14 lines
318 B
ObjectPascal
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

type
t3 = class end;
t2 = class
class function operator implicit(a: t2): t3 := new t3;
end;
t1 = class
class function operator/(a: t1; b: t3): t1 := new t1;
end;
begin
var a := new t1;
var b := new t2;
var c{@var c: t1;@} := a / b;//тут у b неявно приводится тип
end.