www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12112] New: buildNormalizedPath compile error for wstring and dstring

https://d.puremagic.com/issues/show_bug.cgi?id=12112

           Summary: buildNormalizedPath compile error for wstring and
                    dstring
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: cbkbbejeap mailinator.com


--- Comment #0 from Nick Sabalausky <cbkbbejeap mailinator.com> 2014-02-08
14:11:59 PST ---
--------------------------------------
import std.path;
void main() {
    buildNormalizedPath(""w);
}
--------------------------------------

Result:
C:\Users\Nick\AppData\Roaming\dvm\compilers\dmd-2.064.2\bin\..\src\phobos\std\path.d(1278):
Error: cannot implicitly convert expression ("...") of type string to wchar[]
C:\Users\Nick\AppData\Roaming\dvm\compilers\dmd-2.064.2\bin\..\src\phobos\std\path.d(1302):
Error: cannot implicitly convert expression (c) of type immutable(int) to wchar
testWideBuildPath.d(3): Error: template instance
std.path.buildNormalizedPath!wchar error instantiating

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