summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2006-05-16 11:31:55 +0000
committerMartin Odersky <odersky@gmail.com>2006-05-16 11:31:55 +0000
commit332ab9f485d457c6f14abd46e548eecbb79ea602 (patch)
tree9db4c55372d9a404448eaf35b328c584f5d717bb /src/compiler
parentddfe2e74ecf827a0659696c3a21756f3038d585a (diff)
downloadscala-332ab9f485d457c6f14abd46e548eecbb79ea602.tar.gz
scala-332ab9f485d457c6f14abd46e548eecbb79ea602.tar.bz2
scala-332ab9f485d457c6f14abd46e548eecbb79ea602.zip
Fixed bug 592
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/transform/ExplicitOuter.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/ExplicitOuter.scala b/src/compiler/scala/tools/nsc/transform/ExplicitOuter.scala
index 12b3b79083..4524157ce5 100644
--- a/src/compiler/scala/tools/nsc/transform/ExplicitOuter.scala
+++ b/src/compiler/scala/tools/nsc/transform/ExplicitOuter.scala
@@ -75,6 +75,8 @@ abstract class ExplicitOuter extends InfoTransform {
private def outerMember(tp: Type): Symbol = {
var e = tp.symbol.info.decls.elems;
+ // note: tp.decls does not work here, because tp might be a ThisType, in which case
+ // its decls would be the decls of the required type of the class.
while (e != null && !(e.sym.originalName.startsWith(nme.OUTER) && (e.sym hasFlag ACCESSOR)))
e = e.next;
assert(e != null, tp);