summaryrefslogtreecommitdiff
path: root/test/files/pos/packageobjs.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/packageobjs.scala')
-rwxr-xr-xtest/files/pos/packageobjs.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/pos/packageobjs.scala b/test/files/pos/packageobjs.scala
new file mode 100755
index 0000000000..ccab133716
--- /dev/null
+++ b/test/files/pos/packageobjs.scala
@@ -0,0 +1,8 @@
+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.
+}