aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/t2444.scala
blob: fb93749aa963564fac585542151d8d6044460206 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                         
                          


   
object Test {

  trait Foo

  class Bar {
    object baz extends Foo
  }

  def frob[P1, P2<:Foo](f:P1 => P2) = ()

  def main(args:Array[String]) : Unit = {
    frob((p:Bar) => p.baz)
  }

}