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
Comment #1 by k.hara.pg — 2014-12-01T14:42:53Z
Comment #2 by github-bugzilla — 2014-12-01T19:52:05Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/bf74228edf7765f43cb8bade06717a2a99d45946 fix Issue 13803 - Improve pretty-print result for the wstring an dstring types https://github.com/D-Programming-Language/dmd/commit/a23603e4a1ab219d8e0e8ec184db6e95de4be28e Merge pull request #4185 from 9rnsr/fix_pp_string Issue 13802 & 13803 - Improve pretty-print result for the three string types
Comment #3 by github-bugzilla — 2015-02-18T03:40:36Z
Commits pushed to 2.067 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/bf74228edf7765f43cb8bade06717a2a99d45946 fix Issue 13803 - Improve pretty-print result for the wstring an dstring types https://github.com/D-Programming-Language/dmd/commit/a23603e4a1ab219d8e0e8ec184db6e95de4be28e Merge pull request #4185 from 9rnsr/fix_pp_string