summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
Diffstat (limited to 'test/files')
-rw-r--r--test/files/run/t5914.check1
-rw-r--r--test/files/run/t5914.scala9
2 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/t5914.check b/test/files/run/t5914.check
new file mode 100644
index 0000000000..818e321255
--- /dev/null
+++ b/test/files/run/t5914.check
@@ -0,0 +1 @@
+correct
diff --git a/test/files/run/t5914.scala b/test/files/run/t5914.scala
new file mode 100644
index 0000000000..53cae9be74
--- /dev/null
+++ b/test/files/run/t5914.scala
@@ -0,0 +1,9 @@
+import scala.reflect.runtime.universe._
+
+object Test extends App {
+ val tree: Tree = null
+ tree match {
+ case TypeTree() => println("lolwut")
+ case null => println("correct")
+ }
+} \ No newline at end of file