[Issue 9631] Error message not using fully qualified name when appropriate.
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Jul 10 19:49:29 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=9631
jiki at red.email.ne.jp changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jiki at red.email.ne.jp
--- Comment #7 from jiki at red.email.ne.jp ---
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
--
More information about the Digitalmars-d-bugs
mailing list