From 387fbf459efe5bb89f3d7a76c819f72b8f8fd58f Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Tue, 26 Feb 2013 13:20:03 +0100 Subject: SI-7185 Avoid NPE in TreeInfo.isExprSafeToInline We got there typechecking code with a redundant layer of Block. We can't express that in source code, so we test this with manual tree construction and with XML literals, which as reported produce such trees. --- test/files/neg/t7185.check | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/files/neg/t7185.check (limited to 'test/files/neg/t7185.check') diff --git a/test/files/neg/t7185.check b/test/files/neg/t7185.check new file mode 100644 index 0000000000..46f2cc797e --- /dev/null +++ b/test/files/neg/t7185.check @@ -0,0 +1,7 @@ +t7185.scala:2: error: overloaded method value apply with alternatives: + (f: scala.xml.Node => Boolean)scala.xml.NodeSeq + (i: Int)scala.xml.Node + cannot be applied to () + () + ^ +one error found -- cgit v1.2.3