From 3898deafe17eaf5e96387d02c58e4cc74f90838f Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 20 Oct 2015 16:38:16 +0200 Subject: Fix #815. Need to handle hk-aliases specially in typedNew --- tests/pos/i815.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/pos/i815.scala (limited to 'tests/pos/i815.scala') 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) + } +} -- cgit v1.2.3