aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/jon.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-05-27 10:29:44 +0200
committerMartin Odersky <odersky@gmail.com>2015-05-27 10:30:56 +0200
commit397dfd6d564b032e5f1d52dda015ffb4238a595f (patch)
treed0d2d4280ec1eac3978cd80a83751deee534bf1d /tests/pos/jon.scala
parent20f6e9d9efb6ece9a8844cfe011ac1cc663c378e (diff)
downloaddotty-397dfd6d564b032e5f1d52dda015ffb4238a595f.tar.gz
dotty-397dfd6d564b032e5f1d52dda015ffb4238a595f.tar.bz2
dotty-397dfd6d564b032e5f1d52dda015ffb4238a595f.zip
New pos tests
Some of them were moved from disabled after verifiying that they compile now.
Diffstat (limited to 'tests/pos/jon.scala')
-rw-r--r--tests/pos/jon.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pos/jon.scala b/tests/pos/jon.scala
new file mode 100644
index 000000000..d4ea74f02
--- /dev/null
+++ b/tests/pos/jon.scala
@@ -0,0 +1,8 @@
+// This one blows up with a huge type in Scala 2.
+// Reported by Jon Pretty in his talk on Scala type inference.
+object Test {
+
+ val x = List(List, Vector)
+
+ val y: List[scala.collection.generic.SeqFactory] = x
+}