D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 12112 - buildNormalizedPath compile error for wstring and dstring
Summary: buildNormalizedPath compile error for wstring and dstring
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-08 14:11 UTC by Nick Sabalausky
Modified: 2020-03-21 03:56 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Nick Sabalausky 2014-02-08 14:11:59 UTC
--------------------------------------
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
Comment 1 basile-z 2015-11-27 16:20:32 UTC
not anymore