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: [email protected]
          Reporter: [email protected]

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

--

Reply via email to