diff options
author | Paul Phillips <paulp@improving.org> | 2009-08-23 14:58:18 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-08-23 14:58:18 +0000 |
commit | 5251059ef61f459d805ccbf7d7e9470264227d23 (patch) | |
tree | 3ce98e68128769aee16f04f5a0986ca9fa0a60e3 /test | |
parent | 94e71c26a4a1d17dff3f6df74dd972c0280b655e (diff) | |
download | scala-5251059ef61f459d805ccbf7d7e9470264227d23.tar.gz scala-5251059ef61f459d805ccbf7d7e9470264227d23.tar.bz2 scala-5251059ef61f459d805ccbf7d7e9470264227d23.zip |
Fix and test case for #2241.
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 |