diff options
author | Paul Phillips <paulp@improving.org> | 2011-09-28 21:52:39 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-09-28 21:52:39 +0000 |
commit | 898755056642cc3771d33260295f1f51cabc6513 (patch) | |
tree | 0cc88da9e1d3b293f998140d24d8b7bd11f3e96e /test/files/pos/t5012.scala | |
parent | 3a1332c451c8bd9b987ab3dbe775ef5a08360705 (diff) | |
download | scala-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/t5012.scala')
-rw-r--r-- | test/files/pos/t5012.scala | 12 |
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 + } +} |