summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2007-07-25 15:27:04 +0000
committerMartin Odersky <odersky@gmail.com>2007-07-25 15:27:04 +0000
commit538e22b80c657dcc3326959a8601cd0a0da78e37 (patch)
tree12eae89e320905e7f2286751c93024007a733bdf /src
parent95eaa29b50cd8de56c798a6461d933d763a946fc (diff)
downloadscala-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.scala6
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>