diff options
author | Martin Odersky <odersky@gmail.com> | 2016-01-15 17:39:15 +0100 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2016-01-16 21:26:57 +0100 |
commit | 9a378b10a706f283a7337a1debe02e586d08c5ed (patch) | |
tree | ace7c1e83e7f994a9f820131216b5eec448f5788 /test/dotc | |
parent | 8e84133598f879c1cb0ad4b9faf2a90c0403536f (diff) | |
download | dotty-9a378b10a706f283a7337a1debe02e586d08c5ed.tar.gz dotty-9a378b10a706f283a7337a1debe02e586d08c5ed.tar.bz2 dotty-9a378b10a706f283a7337a1debe02e586d08c5ed.zip |
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.
Diffstat (limited to 'test/dotc')
-rw-r--r-- | test/dotc/tests.scala | 9 |
1 files changed, 9 insertions, 0 deletions
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") |