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 } } }