From 4da95609a92f0c685bb7a48688fe9c485f2bc328 Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Mon, 25 Jun 2012 17:19:58 +0200 Subject: SI-5914 handle null in classtag extractor --- test/files/run/t5914.check | 1 + test/files/run/t5914.scala | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 test/files/run/t5914.check create mode 100644 test/files/run/t5914.scala (limited to 'test/files') 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 -- cgit v1.2.3