summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2010-08-24 14:59:54 +0000
committerMartin Odersky <odersky@gmail.com>2010-08-24 14:59:54 +0000
commit3657dd345fa727773109227e2557881cd1bfa891 (patch)
treea2bb4e6ac6192ff4ccdc9fd2828e8ebc35c2e0c9 /test
parentbb7b9fe850f14a6c4e65c9dd9801695e0512b7f4 (diff)
downloadscala-3657dd345fa727773109227e2557881cd1bfa891.tar.gz
scala-3657dd345fa727773109227e2557881cd1bfa891.tar.bz2
scala-3657dd345fa727773109227e2557881cd1bfa891.zip
new tests. No review.
Diffstat (limited to 'test')
-rw-r--r--test/files/neg/t3763.scala2
-rwxr-xr-xtest/pending/run/t3609.scala11
2 files changed, 13 insertions, 0 deletions
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)
+}