aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t443.scala
blob: f1f7ec258642562feb1383bf66472f5f88978505 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
object Test {

  def lookup(): Option[Tuple2[String, String]] =
    ((null: Option[Tuple2[String, String]]) : @unchecked) match {
      case Some((_, _)) =>
    if (true)
      Some((null, null))
    else
      lookup() match {
        case Some(_) => Some(null)
        case None => None
      }
    }
}