diff options
Diffstat (limited to 'test/files/pos/t1987a.scala')
-rw-r--r-- | test/files/pos/t1987a.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/pos/t1987a.scala b/test/files/pos/t1987a.scala new file mode 100644 index 0000000000..ccab133716 --- /dev/null +++ b/test/files/pos/t1987a.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. +} |