aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-01-15 17:39:15 +0100
committerGuillaume Martres <smarter@ubuntu.com>2016-01-16 21:26:57 +0100
commit9a378b10a706f283a7337a1debe02e586d08c5ed (patch)
treeace7c1e83e7f994a9f820131216b5eec448f5788 /tests/pos
parent8e84133598f879c1cb0ad4b9faf2a90c0403536f (diff)
downloaddotty-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 'tests/pos')
-rw-r--r--tests/pos/B.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/pos/B.scala b/tests/pos/B.scala
new file mode 100644
index 000000000..7e4f26e7d
--- /dev/null
+++ b/tests/pos/B.scala
@@ -0,0 +1,6 @@
+object B{
+ def main(args: Array[String]): Unit = {
+ val s = List(1,2,3)
+ ()
+ }
+}