blob: ccab133716183e0c5c3317445aad76796941df7b (
plain) (
tree)
|
|
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.
}
|