Commit 2026-01-12 23:59 3fb836b6
View on Github →feat(translate): linter for overwriting existing translations (#33777)
This PR refactors the linter in to_dual/to_additive for when you tag a declaration that already has a translation. Previously it threw an error that couldn't be turned off, and it would only do this when using the existing modifier. Now it also runs without the existing modifier, and it only throws a warning, which can also be turned off.
There was some hard coded stuff for allowing to correct the (reorder := ...) argument. I removed this code, which also has the side effect of making the syntax more consistent. In order to stay compatible with these cases, the linter doesn't complain when setting the translation to the same thing again.
See also #1779 which allowed to_additive on already existing translations