[Issue 12242] New: conflict error with public imports
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Feb 24 17:00:00 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12242
Summary: conflict error with public imports
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: critical
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: timothee.cour2 at gmail.com
--- Comment #0 from Timothee Cour <timothee.cour2 at gmail.com> 2014-02-24 16:59:52 PST ---
test.d:
module test;
public:
import std.string;
import std.algorithm;
main.d:
import test;
import std.string;
void main(){ auto a=" af ".strip;}
dmd -c -o- main.d
main.d(4): Error: test.strip at test.d conflicts with std.string.strip(C)(C[]
str) if (isSomeChar!C) at phobos/std/string.d(1268)
Remove any of the 4 imports and it'll compile.
Also, there's no line number in 'at test.d'
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list