From a0b6798f3127196114da818b18fbeda9633ca209 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 14 Jan 2014 13:07:57 +0100 Subject: Avoiding cyclic references involving module vals and imports. Previousely, compiling all of dotc/core caused a cyclic reference. The cyclic reference was caused by evaluating a module val, which caused it to evaluate its type, which caused the evaluation of all preceding imports, which led via some hops back to the same module val. We now break the cycle by computing the signature of a module val without going through its type. --- test/dotc/tests.scala | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'test/dotc') diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala index 77cfdd39e..fab5cab09 100644 --- a/test/dotc/tests.scala +++ b/test/dotc/tests.scala @@ -46,28 +46,7 @@ class tests extends CompilerTest { @Test def dotc = compileDir(dotcDir + "tools/dotc") @Test def dotc_ast = compileDir(dotcDir + "tools/dotc/ast") @Test def dotc_config = compileDir(dotcDir + "tools/dotc/config") - @Test def dotc1 = compileFile(dotcDir + "tools/dotc/core/", "Annotations") - @Test def dotc2 = compileFile(dotcDir + "tools/dotc/core/", "Constants") - @Test def dotc3 = compileFile(dotcDir + "tools/dotc/core/", "Constraint") - @Test def dotc4 = compileFile(dotcDir + "tools/dotc/core/", "Contexts") - @Test def dotc5 = compileFile(dotcDir + "tools/dotc/core/", "Decorators") - @Test def dotc6 = compileFile(dotcDir + "tools/dotc/core/", "Definitions") - @Test def dotc7 = compileFile(dotcDir + "tools/dotc/core/", "Denotations") - @Test def dotc8 = compileFile(dotcDir + "tools/dotc/core/", "DotClass") - @Test def dotc9 = compileFile(dotcDir + "tools/dotc/core/", "Flags") - @Test def dotc10 = compileFile(dotcDir + "tools/dotc/core/", "NameOps") - @Test def dotc11 = compileFile(dotcDir + "tools/dotc/core/", "Names") - @Test def dotc12 = compileFile(dotcDir + "tools/dotc/core/", "Periods") - @Test def dotc13 = compileFile(dotcDir + "tools/dotc/core/", "Phases") - @Test def dotc14 = compileFile(dotcDir + "tools/dotc/core/", "Scopes") - @Test def dotc15 = compileFile(dotcDir + "tools/dotc/core/", "Signature") - @Test def dotc16 = compileFile(dotcDir + "tools/dotc/core/", "StdNames") - @Test def dotc17 = compileFile(dotcDir + "tools/dotc/core/", "Substituters") - @Test def dotc18 = compileFile(dotcDir + "tools/dotc/core/", "SymbolLoaders") - @Test def dotc19 = compileFile(dotcDir + "tools/dotc/core/", "Symbols") - @Test def dotc20 = compileFile(dotcDir + "tools/dotc/core/", "SymDenotations") - - + @Test def dotc_core = compileDir(dotcDir + "tools/dotc/core") // @Test def dotc_compilercommand = compileFile(dotcDir + "tools/dotc/config/", "CompilerCommand") -- cgit v1.2.3