Bug 13803 – Improve pretty-print result for the wstring an dstring types
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-12-01T14:39:00Z
Last change time
2015-02-18T03:40:36Z
Keywords
diagnostic, pull
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0 by k.hara.pg — 2014-12-01T14:39:11Z
The wrong program:
void main()
{
string s = 1;
wstring ws = 1;
wstring ds = 1;
}
currently prints following the error messages:
Error: cannot implicitly convert expression (1) of type int to string
Error: cannot implicitly convert expression (1) of type int to immutable(wchar)[]
Error: cannot implicitly convert expression (1) of type int to immutable(wchar)[]
The diagnostic can be improved to:
Error: cannot implicitly convert expression (1) of type int to string
Error: cannot implicitly convert expression (1) of type int to wstring
Error: cannot implicitly convert expression (1) of type int to dstring