[Issue 8636] New: inconsistent behavior with implicit imports

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 9 17:43:15 PDT 2012


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

           Summary: inconsistent behavior with implicit imports
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: thelastmammoth at gmail.com


--- Comment #0 from thelastmammoth at gmail.com 2012-09-09 17:43:50 PDT ---
(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

-- 
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