diff options
Diffstat (limited to 'test')
-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)) +} + |