[Issue 8636] inconsistent behavior with implicit imports

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 14 13:35:27 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=8636



--- Comment #1 from thelastmammoth at gmail.com 2013-02-14 13:35:26 PST ---
probably related:

---- fun.d
void test(){ std.file.write("", []);}
----
dmd -c fun.d
Error: undefined identifier std

---- fun.d
import std.stdio;
void test(){ std.file.write("", []);}
----
dmd -c fun.d
Error: undefined identifier 'file'


---- fun.d
import std.path;
void test(){ std.file.write("", []);}
----
dmd -c fun.d
compiles but shouldn't.

What's also weird is the difference in error msg in case 1 and 2 above.

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


More information about the Digitalmars-d-bugs mailing list