diff options
Diffstat (limited to 'test/files/run/t2241.scala')
-rw-r--r-- | test/files/run/t2241.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/run/t2241.scala b/test/files/run/t2241.scala new file mode 100644 index 0000000000..4a8a662b85 --- /dev/null +++ b/test/files/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") +} |