Skip to content

Commit

Permalink
Set position in FieldAccessors phase
Browse files Browse the repository at this point in the history
  • Loading branch information
jad-hamza committed Feb 7, 2020
1 parent eb1b5bb commit 911fd34
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ trait FieldAccessors extends oo.CachingPhase
case FunctionInvocation(id, tps, args) if isConcreteAccessor(symbols.getFunction(id)) =>
val tfd = symbols.getFunction(id, tps)
transform(s.exprOps.freshenLocals(
s.exprOps.replaceFromSymbols((tfd.params zip args).toMap, tfd.fullBody)))
s.exprOps.replaceFromSymbols((tfd.params zip args).toMap, tfd.fullBody))).setPos(e)
case other => super.transform(other)
}

Expand Down

0 comments on commit 911fd34

Please sign in to comment.