You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Go safety_bypasses: a variable ending in an underscore (my_ = x, result_, err = f()) counts as a blank-identifier discard #9431
Found by the SOP-002 gap-cell decoy work (protocol SOP-002-v1, epic #8863), batch c (Req B).
go.pysafety_bypasses arms _\s*,\s*err[ \t]*= and _[ \t]*=\s*<id>+ have no left boundary on the _, so the trailing underscore of an ordinary identifier is read as the blank identifier.
Snippets:
my_=xresult_, err=f()
Expected: 0 (assignments to the variables my_ and result_; nothing is discarded). Actual: 1 each. Correct controls: _ = x -> 1, _, err = f() -> 1, a_ == b -> 0.
Activity