mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Canonicalization of list patterns
This commit is contained in:
parent
55ea3bbea2
commit
b0a8b85de3
13 changed files with 189 additions and 4 deletions
|
@ -1921,6 +1921,14 @@ fn pattern_to_vars_by_symbol(
|
|||
}
|
||||
}
|
||||
|
||||
List {
|
||||
patterns, elem_var, ..
|
||||
} => {
|
||||
for pat in patterns.patterns.iter() {
|
||||
pattern_to_vars_by_symbol(vars_by_symbol, &pat.value, *elem_var);
|
||||
}
|
||||
}
|
||||
|
||||
NumLiteral(..)
|
||||
| IntLiteral(..)
|
||||
| FloatLiteral(..)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue