aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t1987a.scala
blob: ccab133716183e0c5c3317445aad76796941df7b (plain) (blame)
1
2
3
4
5
6
7
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.
}