aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/ast/tpd.scala
diff options
context:
space:
mode:
authorodersky <odersky@gmail.com>2017-02-21 14:03:10 +0100
committerGitHub <noreply@github.com>2017-02-21 14:03:10 +0100
commit9f879c1677b467037f6c19cc0abe43e0adb802fa (patch)
treec4d473764ac0fd79e0f4d00e4a361fdc595cd90c /compiler/src/dotty/tools/dotc/ast/tpd.scala
parentf467be62da8978e506f58b702b84e74ef7ce09de (diff)
parentbd80a187c3792a4891bec72e0b27b858a5a992ab (diff)
downloaddotty-9f879c1677b467037f6c19cc0abe43e0adb802fa.tar.gz
dotty-9f879c1677b467037f6c19cc0abe43e0adb802fa.tar.bz2
dotty-9f879c1677b467037f6c19cc0abe43e0adb802fa.zip
Merge pull request #1996 from dotty-staging/fix-#1990
Fix #1990: Handle inlining where this proxies change types
Diffstat (limited to 'compiler/src/dotty/tools/dotc/ast/tpd.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/ast/tpd.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/ast/tpd.scala b/compiler/src/dotty/tools/dotc/ast/tpd.scala
index d1d886c55..e5904156f 100644
--- a/compiler/src/dotty/tools/dotc/ast/tpd.scala
+++ b/compiler/src/dotty/tools/dotc/ast/tpd.scala
@@ -342,7 +342,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
private def followOuterLinks(t: Tree)(implicit ctx: Context) = t match {
case t: This if ctx.erasedTypes && !(t.symbol == ctx.owner.enclosingClass || t.symbol.isStaticOwner) =>
// after erasure outer paths should be respected
- new ExplicitOuter.OuterOps(ctx).path(t.tpe.widen.classSymbol)
+ new ExplicitOuter.OuterOps(ctx).path(toCls = t.tpe.widen.classSymbol)
case t =>
t
}