[Issue 15567] New: local import hijacking
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Jan 14 06:21:14 PST 2016
https://issues.dlang.org/show_bug.cgi?id=15567
Issue ID: 15567
Summary: local import hijacking
Product: D
Version: D2
Hardware: All
URL: http://dlang.org/
OS: All
Status: NEW
Severity: major
Priority: P3
Component: dmd
Assignee: nobody at puremagic.com
Reporter: bheads at moxiegroup.com
Got burned by this:
import std.experimental.logger : trace;
void foo() {
import std.net.curl : trace;
trace("hello");
}
void main() {
foo();
}
This should not compile and give an error on the use of the ambiguous call to
trace.
confirmed on DMD 2.069.2 on windows
--
More information about the Digitalmars-d-bugs
mailing list