summaryrefslogtreecommitdiff
path: root/test/pending/pos/bug443.scala
blob: 5b83e9d2cbb5afb40b9483c232dfa4ee431c4aaa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
object Test {

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