summaryrefslogblamecommitdiff
path: root/test/files/pos/bug443.scala
blob: 5b5e3ea828e813609c8fbc443c2a37d52ba8ab8a (plain) (tree)
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]]) : @unchecked) match {
      case Some(Pair(_, _)) =>
	if (true)
	  Some(Pair(null, null))
	else
	  lookup() match {
	    case Some(_) => Some(null)
	    case None => None
	  }
    }
}