blob: d45f1b0f0df480ba4f2da0e4998a4df890adfbc1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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.
}
|