https://issues.dlang.org/show_bug.cgi?id=9631

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #7 from [email protected] ---
To fix this, replace each occurrence of xtype->toChars()
with xtype->toPrettyChars(true).


For instance,
 Expression *BinExp::incompatibleTypes() in dmd/src/expression.c:

 error("incompatible types for ((%s) %s (%s)): '%s' and '%s'",
         e1->toChars(), Token::toChars(thisOp), e2->toChars(),
         e1->type->toChars(), e2->type->toChars()); // <--- PATCH HERE, 2 of 2


As Comment 0,
 Expression *implicitCastTo(Expression *e, Scope *sc, Type *t) in
dmd/src/cast.c:

 e->error("cannot implicitly convert expression (%s) of type %s to %s",
         e->toChars(), e->type->Chars(), t->toChars()); // <--- PATCH HERE,
last 2 of 3


# But it isn't enough checked. :P

--

Reply via email to