From 4f4a80ad5b85ce3922c80bbc9524f2540918187e Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sat, 6 Aug 2011 14:24:42 +0000 Subject: Don't want to chase NPEs around for the rest of... Don't want to chase NPEs around for the rest of my life. Created "NoCompilationUnit" and "NoSourceFile" objects to represent not-present versions of these items. Seems a lot better than null. References SI-4859, got past NPE only to uncover the actual problem. No review. --- test/pending/pos/bug4859.scala | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/pending/pos/bug4859.scala (limited to 'test/pending') diff --git a/test/pending/pos/bug4859.scala b/test/pending/pos/bug4859.scala new file mode 100644 index 0000000000..ec5abd966d --- /dev/null +++ b/test/pending/pos/bug4859.scala @@ -0,0 +1,15 @@ +object O { + C().CC() + D().DD() +} + +case class C() { + case class CC() +} + +case class D() { + class DD() + object DD { + def apply() = new DD() + } +} -- cgit v1.2.3