diff options
Diffstat (limited to 'tests/pos/i815.scala')
-rw-r--r-- | tests/pos/i815.scala | 11 |
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) + } +} |