Skip to content

Commit

Permalink
Provide position for unimplemented augmented assignment
Browse files Browse the repository at this point in the history
Avoids having "dummy position" appear in the resulting error message.

Also call "convert" on the left- and right-hand sides like we do in
the other cases.
  • Loading branch information
d-torrance committed Dec 18, 2024
1 parent 0ab89e4 commit d16750e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion M2/Macaulay2/d/convertr.d
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ export convert0(e:ParseTree):Code := (
is t:Token do Code(augmentedAssignmentCode(
b.Operator.entry, convert(b.lhs), convert(b.rhs), t.entry, pos))
else Code(augmentedAssignmentCode(
b.Operator.entry, dummyCode, dummyCode, dummySymbol, dummyPosition)) -- CHECK
b.Operator.entry, convert(b.lhs), convert(b.rhs), dummySymbol, pos))
)
else Code(binaryCode(b.Operator.entry.binary, convert(b.lhs), convert(b.rhs), pos))
)
Expand Down

0 comments on commit d16750e

Please sign in to comment.