blob: decede74a44a38bde07a3dcf7a07b65845c674bb (
plain) (
tree)
|
|
/*
* Tests if two lambdas defined in the same class do not lead to
* name clashes.
*/
object Test {
def takeLambda(f: Int => Int ): Int = f(12)
def main(args: Array[String]): Unit = {
println(takeLambda(x => x+1))
println(takeLambda(x => x*2))
}
}
|