From 9fc30e17b2b6550850933b499a211bb7532ff51b Mon Sep 17 00:00:00 2001 From: David MacIver Date: Sat, 28 Feb 2009 22:35:36 +0000 Subject: Fix for ticket #1718 --- test/files/run/t1718.scala | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/files/run/t1718.scala (limited to 'test/files/run/t1718.scala') 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)) +} + -- cgit v1.2.3