diff options
Diffstat (limited to 'tests/pending/run/t2241.scala')
-rw-r--r-- | tests/pending/run/t2241.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pending/run/t2241.scala b/tests/pending/run/t2241.scala new file mode 100644 index 000000000..4a8a662b8 --- /dev/null +++ b/tests/pending/run/t2241.scala @@ -0,0 +1,7 @@ +object Test extends App { + def f(a:Array[Int]) = a match { + case Array(1, _*) => "yes" + case _ => "no" + } + assert(f(null) == "no") +} |