File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -486,7 +486,14 @@ object TreeTransforms {
486486 var nxCopied = false
487487 var result = info.transformers
488488 var resultNX = info.nx
489- var i = mutationPlan(0 ) // if TreeTransform.transform() method didn't exist we could have used mutationPlan(cur)
489+ var i = mutationPlan(cur)
490+ // @DarkDimius You commented on the previous version
491+ //
492+ // var i = mutationPlan(0) // if TreeTransform.transform() method didn't exist we could have used mutationPlan(cur)
493+ //
494+ // But we need to use `cur` or otherwise we call prepare actions preceding the
495+ // phase that issued a transformFollowing. This can lead to "denotation not defined
496+ // here" errors. Note that tests still pass with the current modified code.
490497 val l = result.length
491498 var allDone = i < l
492499 while (i < l) {
You can’t perform that action at this time.
0 commit comments