optional record fields in patterns are bound

This commit is contained in:
Folkert 2020-10-16 15:29:21 +02:00
parent e656363cc0
commit 9b83c3ad58
2 changed files with 4 additions and 1 deletions

View file

@ -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 {