File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1957,7 +1957,7 @@ final class SearchRoot extends SearchHistory {
1957
1957
// Substitute dictionary references into dictionary entry RHSs
1958
1958
val rhsMap = new TreeTypeMap (treeMap = {
1959
1959
case id : Ident if vsymMap.contains(id.symbol) =>
1960
- tpd.ref(vsymMap(id.symbol))
1960
+ tpd.ref(vsymMap(id.symbol))(ctx.withSource(id.source)).withSpan(id.span)
1961
1961
case tree => tree
1962
1962
})
1963
1963
val nrhss = rhss.map(rhsMap(_))
@@ -1981,7 +1981,7 @@ final class SearchRoot extends SearchHistory {
1981
1981
1982
1982
val res = resMap(tree)
1983
1983
1984
- val blk = Inliner .reposition( Block (classDef :: inst :: Nil , res), span)
1984
+ val blk = Block (classDef :: inst :: Nil , res).withSpan( span)
1985
1985
1986
1986
success.copy(tree = blk)(success.tstate, success.gstate)
1987
1987
}
You can’t perform that action at this time.
0 commit comments