[Issue 13803] New: Improve pretty-print result for the wstring an dstring types

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Dec 1 06:39:11 PST 2014


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

          Issue ID: 13803
           Summary: Improve pretty-print result for the wstring an dstring
                    types
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: diagnostic
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: k.hara.pg at gmail.com

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

--


More information about the Digitalmars-d-bugs mailing list