blob: 8f4c1c4436c15bdf73360671dca43d80b99ba416 (
plain) (
tree)
|
|
object Main {
def main(args : Array[String]) {
val fn = (a : Int, str : String) => "a: " + a + ", str: " + str
implicit def fx[T](f : (T,String) => String) = (x:T) => f(x,null)
println(fn(1))
()
}
}
|