(bug filed in response to http://forum.dlang.org/thread/tscjzueypzuiptpkvxrb@forum.dlang.org) This compiles but shouldn't: (needs explicit import) ---- import std.stdio; void main(){ writeln(std.conv.to!double(1)); } ---- This doesn't compile (and shouldn't): ---- import std.stdio; void main(){ std.stdio.writeln(std.conv.to!double(1)); } ---- =>Error: undefined identifier std
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.
I cannot reproduce the original bug report. Closing as worksforme.