summaryrefslogtreecommitdiff
path: root/test/files/run/t1718.scala
diff options
context:
space:
mode:
authorDavid MacIver <david.maciver@gmail.com>2009-02-28 22:35:36 +0000
committerDavid MacIver <david.maciver@gmail.com>2009-02-28 22:35:36 +0000
commit9fc30e17b2b6550850933b499a211bb7532ff51b (patch)
treee86aee4f3cd22bcee8ae16a508b214b3c949d933 /test/files/run/t1718.scala
parent305fe3a352099315df2cd409e918b712485af15d (diff)
downloadscala-9fc30e17b2b6550850933b499a211bb7532ff51b.tar.gz
scala-9fc30e17b2b6550850933b499a211bb7532ff51b.tar.bz2
scala-9fc30e17b2b6550850933b499a211bb7532ff51b.zip
Fix for ticket #1718
Diffstat (limited to 'test/files/run/t1718.scala')
-rw-r--r--test/files/run/t1718.scala10
1 files changed, 10 insertions, 0 deletions
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))
+}
+