mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
optional record fields in patterns are bound
This commit is contained in:
parent
e656363cc0
commit
9b83c3ad58
2 changed files with 4 additions and 1 deletions
|
@ -326,6 +326,9 @@ pub fn canonicalize_pattern<'a>(
|
|||
&loc_default.value,
|
||||
);
|
||||
|
||||
// an optional field binds the symbol!
|
||||
output.references.bound_symbols.insert(symbol);
|
||||
|
||||
output.union(expr_output);
|
||||
|
||||
destructs.push(Located {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue