1 2 3 4 5 6 7
object Test extends dotty.runtime.LegacyApp { def f(a:Array[Int]) = a match { case Array(1, _*) => "yes" case _ => "no" } assert(f(null) == "no") }