blob: 865047ce4f439798d8d299a1c4d79bd3700dae01 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
object Test {
case class C(x: Int)
val v: Some[Int] = null
def main(args: Array[String]): Unit = {
try C.unapply(null) catch { case _: MatchError => }
try ((v: @unchecked) match { case Some(1) => }) catch { case _: MatchError => }
}
}
|