summaryrefslogtreecommitdiff
path: root/test/pending
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-08-06 14:24:42 +0000
committerPaul Phillips <paulp@improving.org>2011-08-06 14:24:42 +0000
commit4f4a80ad5b85ce3922c80bbc9524f2540918187e (patch)
treed56b411659069b7bcf841804875545ed0f8925da /test/pending
parent6d45fddd4c6537fb343e901d58491b81475e3786 (diff)
downloadscala-4f4a80ad5b85ce3922c80bbc9524f2540918187e.tar.gz
scala-4f4a80ad5b85ce3922c80bbc9524f2540918187e.tar.bz2
scala-4f4a80ad5b85ce3922c80bbc9524f2540918187e.zip
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.
Diffstat (limited to 'test/pending')
-rw-r--r--test/pending/pos/bug4859.scala15
1 files changed, 15 insertions, 0 deletions
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()
+ }
+}