aboutsummaryrefslogblamecommitdiff
path: root/tests/run/t1335.scala
blob: 047f7b566a70faaf48225b6f9121883ff58eb6b9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                       
case class MyTuple(a: Int, b: Int)

object Test {
  def main(args: Array[String]): Unit =
    try {
      val mt: MyTuple = null
      val MyTuple(a, b) = mt
    } catch {
      case e: MatchError => ()
    }
}