summaryrefslogtreecommitdiff
path: root/test/files/pos/t9123.scala
blob: 22d55b435114f88f10d374dd07f34beb45312b01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
trait Setting {
  type T
  def value: T
}

object Test {
  def test(x: Some[Setting]) = x match {
    case Some(dep) => Some(dep.value) map (_ => true)
  }
}