summaryrefslogtreecommitdiff
path: root/test/files/pos/t1560.scala
blob: fb5592016a03e0411b436d88e4b53d06eb903fee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
object Test extends App {
  
  trait C[T] {
    def t: T
  }
  
  def b: Option[C[x] forSome { type x }] = null
  
  def c = b match {
    case Some(b) => b.t
  }
  
}