aboutsummaryrefslogblamecommitdiff
path: root/tests/untried/pos/t4257.scala
blob: fd150a150a6c1004d6995b06df454bbdc7088e3a (plain) (tree)
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)
    }
  }
}