mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
fix indexing
This commit is contained in:
parent
f72b8c2c30
commit
bf7be1533b
1 changed files with 1 additions and 1 deletions
|
@ -526,7 +526,7 @@ fn specialize_row_with_polymorphic_list(
|
|||
let (patterns_before, patterns_after) = match polymorphic_list_ctor {
|
||||
ListArity::Slice(before, after) => (
|
||||
&list_element_patterns[..before],
|
||||
&list_element_patterns[after..],
|
||||
&list_element_patterns[list_element_patterns.len() - after..],
|
||||
),
|
||||
ListArity::Exact(_) => (list_element_patterns, &[] as &[Pattern]),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue