aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-01-14 13:07:57 +0100
committerMartin Odersky <odersky@gmail.com>2014-01-14 13:07:57 +0100
commita0b6798f3127196114da818b18fbeda9633ca209 (patch)
treedcfed6db17fdb04a2653e44ff6644c1798de6ecf /test
parent550bf861e28a62a5057d6816e0bd336463e9b0bf (diff)
downloaddotty-a0b6798f3127196114da818b18fbeda9633ca209.tar.gz
dotty-a0b6798f3127196114da818b18fbeda9633ca209.tar.bz2
dotty-a0b6798f3127196114da818b18fbeda9633ca209.zip
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.
Diffstat (limited to 'test')
-rw-r--r--test/dotc/tests.scala23
1 files changed, 1 insertions, 22 deletions
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")