[Issue 5004] show both resolved symbols and original identifier in error messages involving aliases

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 6 06:51:22 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=5004



--- Comment #9 from bearophile_hugs at eml.cc 2012-05-06 06:52:35 PDT ---
One case:


alias ushort UT;
void main() {
    int x;
    UT y = x;
}


DMD 2.060alpha gives:

test.d(4): Error: cannot implicitly convert expression (x) of type int to
ushort

But a more useful error message is similar to:

test.d(4): Error: cannot implicitly convert expression (x) of type int to UT
(alias for ushort)


See also Issue 8044

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list