aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i815.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-10-20 16:38:16 +0200
committerMartin Odersky <odersky@gmail.com>2015-10-20 16:52:05 +0200
commit3898deafe17eaf5e96387d02c58e4cc74f90838f (patch)
tree46b81dcf586b1dc21bc841cab394bb61839ef6e7 /tests/pos/i815.scala
parentcbb565a436196b102c27688d1da8f27bea12bae4 (diff)
downloaddotty-3898deafe17eaf5e96387d02c58e4cc74f90838f.tar.gz
dotty-3898deafe17eaf5e96387d02c58e4cc74f90838f.tar.bz2
dotty-3898deafe17eaf5e96387d02c58e4cc74f90838f.zip
Fix #815.
Need to handle hk-aliases specially in typedNew
Diffstat (limited to 'tests/pos/i815.scala')
-rw-r--r--tests/pos/i815.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/pos/i815.scala b/tests/pos/i815.scala
new file mode 100644
index 000000000..bc0083ee2
--- /dev/null
+++ b/tests/pos/i815.scala
@@ -0,0 +1,11 @@
+import scala.collection.immutable.::
+class C[T](x: T)
+object A {
+ def main(args: Array[String]): Unit = {
+ val x = new C("A")
+ val y = new ::(args, Nil)
+ val z = ::(args, Nil)
+ println(y)
+ println(z)
+ }
+}