summaryrefslogtreecommitdiff
path: root/test/files/pos/bug1560.scala
blob: 384e808e4b595793c62f14f8c051bdc1981224d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
object Test extends Application {
  trait C[T] {
    def t: T
  }

  def b: Option[C[_]] = null

  def c = b match {
    case Some(b) => b.t
  }
}