1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
object Test { class SA[@specialized(Int) A] { def o[U](f: ((Int, A) => Any)): Unit = {} def o[U](f: A => Any): Unit = {} } class X[@specialized(Int) B] { def x(b: B) = { new SA[B]().o((x: Any) => x) } } }