summaryrefslogtreecommitdiff
path: root/test/pending/neg
diff options
context:
space:
mode:
authorGilles Dubochet <gilles.dubochet@epfl.ch>2009-06-09 13:22:01 +0000
committerGilles Dubochet <gilles.dubochet@epfl.ch>2009-06-09 13:22:01 +0000
commitf205501be80001855b06d64c4260adafe6dc4417 (patch)
tree4e5d936a17e5171403ee3dddba5a67b21b4d5e6e /test/pending/neg
parent238ad426ba6166223595c79a55fbeb768843d74e (diff)
downloadscala-f205501be80001855b06d64c4260adafe6dc4417.tar.gz
scala-f205501be80001855b06d64c4260adafe6dc4417.tar.bz2
scala-f205501be80001855b06d64c4260adafe6dc4417.zip
Added a series of pending test cases.
Diffstat (limited to 'test/pending/neg')
-rw-r--r--test/pending/neg/bug1987.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/pending/neg/bug1987.scala b/test/pending/neg/bug1987.scala
new file mode 100644
index 0000000000..d45f1b0f0d
--- /dev/null
+++ b/test/pending/neg/bug1987.scala
@@ -0,0 +1,14 @@
+
+
+// Copyright Shunsuke Sogame 2008-2009.
+// Distributed under the terms of an MIT-style license.
+
+
+package object overloading {
+ def bar(f: (Int) => Unit): Unit = ()
+ def bar(f: (Int, Int) => Unit): Unit = ()
+}
+
+class PackageObjectOverloadingTest {
+ overloading.bar( (i: Int) => () ) // doesn't compile.
+}