aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t0872.scala
blob: ccaee80521c2e6f125b3963827ea1a132ee95015 (plain) (blame)
1
2
3
4
5
6
7
8
object Main {
  def main(args : Array[String]): Unit = {
    val fn = (a : Int, str : String) => "a: " + a + ", str: " + str
    implicit def fx[T](f : (T,String) => String): T => String = (x:T) => f(x,null)
    println(fn(1))
    ()
  }
}