From 231d59dcf57af99a9e2a1366afd18680c13cd6ce Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sat, 22 Dec 2012 10:12:03 -0800 Subject: SI-6829, SI-6788, NPEs during erroneous compilation. Have to intercept trees which have a null type due to errors before they leave the warm confines of 'def typed' because from that point everything assumes tree.tpe != null. --- test/files/neg/t6788.scala | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/files/neg/t6788.scala (limited to 'test/files/neg/t6788.scala') diff --git a/test/files/neg/t6788.scala b/test/files/neg/t6788.scala new file mode 100644 index 0000000000..77949ed621 --- /dev/null +++ b/test/files/neg/t6788.scala @@ -0,0 +1,7 @@ +case class B[T](b: T, a: List[Int]) // need two args, B must be polymorphic + +class A { + var s: B[Int] = _ // has to be a var + + s.copy(b = foo) +} -- cgit v1.2.3