mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Give localized region for expected list elem pattern
This commit is contained in:
parent
cb61f51814
commit
283f6e8e1e
1 changed files with 5 additions and 2 deletions
|
@ -520,8 +520,11 @@ pub fn constrain_pattern(
|
|||
},
|
||||
} => {
|
||||
for loc_pat in patterns.iter() {
|
||||
let expected =
|
||||
PExpected::ForReason(PReason::ListElem, Type::Variable(*elem_var), region);
|
||||
let expected = PExpected::ForReason(
|
||||
PReason::ListElem,
|
||||
Type::Variable(*elem_var),
|
||||
loc_pat.region,
|
||||
);
|
||||
|
||||
constrain_pattern(
|
||||
constraints,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue