summaryrefslogtreecommitdiff
path: root/test/files/pos
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-09-28 21:52:39 +0000
committerPaul Phillips <paulp@improving.org>2011-09-28 21:52:39 +0000
commit898755056642cc3771d33260295f1f51cabc6513 (patch)
tree0cc88da9e1d3b293f998140d24d8b7bd11f3e96e /test/files/pos
parent3a1332c451c8bd9b987ab3dbe775ef5a08360705 (diff)
downloadscala-898755056642cc3771d33260295f1f51cabc6513.tar.gz
scala-898755056642cc3771d33260295f1f51cabc6513.tar.bz2
scala-898755056642cc3771d33260295f1f51cabc6513.zip
Fix bug in ModuleDef elimination.
Fixes corner case diagnosed by miguel. Closes SI-5012, no review.
Diffstat (limited to 'test/files/pos')
-rw-r--r--test/files/pos/t5012.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/pos/t5012.scala b/test/files/pos/t5012.scala
new file mode 100644
index 0000000000..772b8f4486
--- /dev/null
+++ b/test/files/pos/t5012.scala
@@ -0,0 +1,12 @@
+class D {
+ object p // (program point 1)
+}
+
+class C {
+ def m: D = {
+ if("abc".length == 0) {
+ object p // (program point 2)
+ }
+ null
+ }
+}