diff options
author | Martin Odersky <odersky@gmail.com> | 2007-07-25 15:27:04 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2007-07-25 15:27:04 +0000 |
commit | 538e22b80c657dcc3326959a8601cd0a0da78e37 (patch) | |
tree | 12eae89e320905e7f2286751c93024007a733bdf /src | |
parent | 95eaa29b50cd8de56c798a6461d933d763a946fc (diff) | |
download | scala-538e22b80c657dcc3326959a8601cd0a0da78e37.tar.gz scala-538e22b80c657dcc3326959a8601cd0a0da78e37.tar.bz2 scala-538e22b80c657dcc3326959a8601cd0a0da78e37.zip |
fixed bugs 1237, 1241
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/ExplicitOuter.scala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/ExplicitOuter.scala b/src/compiler/scala/tools/nsc/transform/ExplicitOuter.scala index 736a5539b5..9b8ec5525c 100644 --- a/src/compiler/scala/tools/nsc/transform/ExplicitOuter.scala +++ b/src/compiler/scala/tools/nsc/transform/ExplicitOuter.scala @@ -169,8 +169,10 @@ abstract class ExplicitOuter extends InfoTransform with TransMatcher with Patter /** Select and apply outer accessor from 'base' * The result is typed but not positioned. */ - private def outerSelect(base: Tree): Tree = - localTyper.typed(Apply(Select(base, outerAccessor(base.tpe.typeSymbol)), List())) + private def outerSelect(base: Tree): Tree = { + val path = Apply(Select(base, outerAccessor(base.tpe.typeSymbol.toInterface)), List()) + localTyper.typed(path) + } /** The path * <blockquote><pre>`base'.$outer$$C1 ... .$outer$$Cn</pre></blockquote> |