From 3657dd345fa727773109227e2557881cd1bfa891 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 24 Aug 2010 14:59:54 +0000 Subject: new tests. No review. --- test/files/neg/t3763.scala | 2 ++ test/pending/run/t3609.scala | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 test/files/neg/t3763.scala create mode 100755 test/pending/run/t3609.scala diff --git a/test/files/neg/t3763.scala b/test/files/neg/t3763.scala new file mode 100644 index 0000000000..6ac4595add --- /dev/null +++ b/test/files/neg/t3763.scala @@ -0,0 +1,2 @@ +object Test extends Application { + val x = Array(Array(1), List(1)) diff --git a/test/pending/run/t3609.scala b/test/pending/run/t3609.scala new file mode 100755 index 0000000000..262948137d --- /dev/null +++ b/test/pending/run/t3609.scala @@ -0,0 +1,11 @@ +object Test extends Application { + class A + class B extends A + def foo(x: A, y: B) = print(1) + val foo = new { + //def apply(x: B, y: A) = print(3) + def apply = (x: B, z: B) => print(4) + } + + foo(new B, new B) +} -- cgit v1.2.3