[Issue 3506] [module] Imports should be valid at any scope

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3506

Andrei Alexandrescu and...@erdani.com changed:

   What|Removed |Added

Version|future  |D2

--


[Issue 3506] [module] Imports should be valid at any scope

2012-02-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3506


d...@dawgfoto.de changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||d...@dawgfoto.de
 Resolution||WORKSFORME


--- Comment #1 from d...@dawgfoto.de 2012-02-14 05:40:37 PST ---
cat  foo.d  CODE
void bar() {}
CODE

cat  ut.d  CODE
unittest
{
import foo;
foo.bar();
}
CODE

dmd -c -unittest ut.d

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