summaryrefslogblamecommitdiff
path: root/test/files/pos/t2444.scala
blob: 6f07dcf92d2995b22fa5aed9d3c2a13b03df6291 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                         
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)
  }

}