diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/bug2241.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/run/bug2241.scala b/test/files/run/bug2241.scala new file mode 100644 index 0000000000..58cc46fe69 --- /dev/null +++ b/test/files/run/bug2241.scala @@ -0,0 +1,7 @@ +object Test extends Application { + def f(a:Array[Int]) = a match { + case Array(1, _*) => "yes" + case _ => "no" + } + assert(f(null) == "no") +}
\ No newline at end of file |