diff sema/ScopeBuilder.d @ 99:857f0d530789 new_gen

Imports and improved module statement Allow "module a.b.c" Supports most forms of D's import. import A, B; import A, B = C; import A, B : a = b, c;
author Anders Halager <halager@gmail.com>
date Tue, 06 May 2008 21:59:22 +0200
parents 48bb2287c035
children fea8d61a2451
line wrap: on
line diff
--- a/sema/ScopeBuilder.d	Tue May 06 21:55:29 2008 +0200
+++ b/sema/ScopeBuilder.d	Tue May 06 21:59:22 2008 +0200
@@ -74,6 +74,7 @@
 
     override void visit(Module m)
     {
+        current().inModule = m;
         visitModule(m);
         auto fr = new ForwardReference();
         fr.visit(m);