diff dmd/UnitTestDeclaration.d @ 98:5c859d5fbe27

and more
author Trass3r
date Tue, 31 Aug 2010 03:53:49 +0200
parents 2e2a5c3f943a
children e28b18c23469
line wrap: on
line diff
--- a/dmd/UnitTestDeclaration.d	Tue Aug 31 02:12:15 2010 +0200
+++ b/dmd/UnitTestDeclaration.d	Tue Aug 31 03:53:49 2010 +0200
@@ -53,14 +53,21 @@
 			sc2.pop();
 		}
 
+static if (false)
+{
 		// We're going to need ModuleInfo even if the unit tests are not
 		// compiled in, because other modules may import this module and refer
 		// to this ModuleInfo.
+		// (This doesn't make sense to me?)
 		Module m = getModule();
 		if (!m)
 			m = sc.module_;
 		if (m)
+		{
+			// writef("module3 %s needs moduleinfo\n", m.toChars());
 			m.needmoduleinfo = 1;
+		}
+}
 	}
 
     override AggregateDeclaration isThis()