Code:
function StrAddVar(AString : String; AVar : Variant) : String;
Begin
Result := AString + AVar;
End;
operator << (string, variant) : string uses StrAddVar;
var s := '';
s := s << 5; // expected: right operand must be cast to variant
println(s);
Output:
Syntax Error: Invalid Operands [line: 12, column: 8]
Original issue reported on code.google.com by kazantse...@mail.ru on 5 Aug 2011 at 12:27
Original issue reported on code.google.com by
kazantse...@mail.ru
on 5 Aug 2011 at 12:27