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
A bool payload beside a bool literal never matches in an incomplete match #9035
f(AnyBool(false)) returns "other", but should return "bool". With @as(false) instead of @as(true), every value goes to the AnyBool arm.
Observed on master (d48d577). Cause: Js_exp_make.simplify_and_ rewrites typeof x === "boolean" && x !== b to the constant !b. Its doc comment says the result is x === !b, which is what's correct. The match produces exactly this conjunction for a bool payload beside a bool literal.
Found by a review of the untagged variant work (#8950).
Activity
Fix a bool payload beside a bool literal in an incomplete match (resc…