From 538e22b80c657dcc3326959a8601cd0a0da78e37 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 25 Jul 2007 15:27:04 +0000 Subject: fixed bugs 1237, 1241 --- src/compiler/scala/tools/nsc/transform/ExplicitOuter.scala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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 *
`base'.$outer$$C1 ... .$outer$$Cn
-- cgit v1.2.3