We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1604976 commit eef4d68Copy full SHA for eef4d68
src/dotty/tools/dotc/ast/TreeTypeMap.scala
@@ -82,9 +82,11 @@ final class TreeTypeMap(
82
constr = tmap.transformSub(constr),
83
parents = parents mapconserve transform,
84
self = tmap.transformSub(self),
85
- body = impl.body mapconserve tmap.transform
+ body = impl.body mapconserve
86
+ (tmap.transform(_)(ctx.withOwner(mapOwner(impl.symbol.owner))))
87
).withType(tmap.mapType(impl.tpe))
88
case tree1 =>
89
+ println(i"tree type map $tree1, owner = ${ctx.owner}")
90
tree1.withType(mapType(tree1.tpe)) match {
91
case id: Ident if tpd.needsSelect(id.tpe) =>
92
ref(id.tpe.asInstanceOf[TermRef]).withPos(id.pos)
0 commit comments