mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
be more precise
This commit is contained in:
parent
7d256067f9
commit
1a4ceeeb65
1 changed files with 1 additions and 1 deletions
|
@ -353,7 +353,7 @@ fn to_nonredundant_rows(
|
||||||
vec![simplify(&loc_pat.value)]
|
vec![simplify(&loc_pat.value)]
|
||||||
};
|
};
|
||||||
|
|
||||||
if any_has_guard || is_useful(checked_rows.clone(), next_row.clone()) {
|
if matches!(guard, Guard::HasGuard) || is_useful(checked_rows.clone(), next_row.clone()) {
|
||||||
checked_rows.push(next_row);
|
checked_rows.push(next_row);
|
||||||
} else {
|
} else {
|
||||||
return Err(Error::Redundant {
|
return Err(Error::Redundant {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue