diff options
author | David MacIver <david.maciver@gmail.com> | 2009-02-28 22:35:36 +0000 |
---|---|---|
committer | David MacIver <david.maciver@gmail.com> | 2009-02-28 22:35:36 +0000 |
commit | 9fc30e17b2b6550850933b499a211bb7532ff51b (patch) | |
tree | e86aee4f3cd22bcee8ae16a508b214b3c949d933 /test/files/run | |
parent | 305fe3a352099315df2cd409e918b712485af15d (diff) | |
download | scala-9fc30e17b2b6550850933b499a211bb7532ff51b.tar.gz scala-9fc30e17b2b6550850933b499a211bb7532ff51b.tar.bz2 scala-9fc30e17b2b6550850933b499a211bb7532ff51b.zip |
Fix for ticket #1718
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t1718.check | 1 | ||||
-rw-r--r-- | test/files/run/t1718.scala | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/t1718.check b/test/files/run/t1718.check new file mode 100644 index 0000000000..27ba77ddaf --- /dev/null +++ b/test/files/run/t1718.check @@ -0,0 +1 @@ +true diff --git a/test/files/run/t1718.scala b/test/files/run/t1718.scala new file mode 100644 index 0000000000..61a17b2906 --- /dev/null +++ b/test/files/run/t1718.scala @@ -0,0 +1,10 @@ +object Test extends Application{ + def matchesNull[T](mightBeNull: Array[T]): Boolean = mightBeNull match { + case null => true + case x => false + } + + val nullArray: Array[String] = null + println(matchesNull(nullArray)) +} + |