From 9a378b10a706f283a7337a1debe02e586d08c5ed Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Fri, 15 Jan 2016 17:39:15 +0100 Subject: Compute type params in namer without completing the whole info Type params should be computed before computing the whole info of a type. Without the patch we get a cyclic reference in the compileMixed test. Note that compileIndexedSeq does not pass with this commit (it passed before), this is fixed in the next commit. --- test/dotc/tests.scala | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/dotc/tests.scala') diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala index b61783b0b..16f8bdb30 100644 --- a/test/dotc/tests.scala +++ b/test/dotc/tests.scala @@ -186,6 +186,15 @@ class tests extends CompilerTest { .toList @Test def compileStdLib = compileList("compileStdLib", stdlibFiles, "-migration" :: scala2mode) + @Test def compileMixed = compileLine( + """tests/pos/B.scala + |./scala-scala/src/library/scala/collection/immutable/Seq.scala + |./scala-scala/src/library/scala/package.scala + |./scala-scala/src/library/scala/collection/GenSeqLike.scala + |./scala-scala/src/library/scala/collection/SeqLike.scala + |./scala-scala/src/library/scala/collection/generic/GenSeqFactory.scala""".stripMargin) + // @Test def compileIndexedSeq = compileLine("./scala-scala/src/library/scala/collection/immutable/IndexedSeq.scala") + @Test def dotty = compileDir(dottyDir, ".", List("-deep", "-Ycheck-reentrant"))(allowDeepSubtypes) // note the -deep argument @Test def dotc_ast = compileDir(dotcDir, "ast") -- cgit v1.2.3