local import hijacking

Byron Heads via Digitalmars-d digitalmars-d at puremagic.com
Thu Jan 14 06:25:43 PST 2016


I got burned by this yesterday, this code should not compile

import std.experimental.logger : trace;


void foo() {
	import std.net.curl : trace;
	trace("hello");
}


void main() {
	foo();	
}


Not sure if this is a duplicate
https://issues.dlang.org/show_bug.cgi?id=15567





More information about the Digitalmars-d mailing list