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
Parser: a qualified variant pattern (let Shape.Named(n) = s else: ...) is rejected in let; match accepts it #1373
A type-qualified enum-variant pattern parses in a match arm but not in a let / let ... else pattern. Patterns are one grammar (§9.7); the spec examples use .Variant shorthand in let-else (§9.7 "let ... else with enum shorthand"), but nothing restricts a let pattern to the shorthand.
Activity
let-else: a let pattern is the match-arm pattern grammar; the else br…
let-else: the failing path drops the whole subject before it diverges…
let-else: the failing path drops the whole subject before it diverges…
let-else: a let pattern is the match-arm pattern grammar; the else br…
let-else: a let pattern is the match-arm pattern grammar; the else br…
let-else: a let pattern is the match-arm pattern grammar; the else br…
let-else: a let pattern is the match-arm pattern grammar; the else br…