mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Implement list exhaustiveness checking
This commit is contained in:
parent
62edf9547e
commit
17920911e4
3 changed files with 524 additions and 25 deletions
|
@ -197,7 +197,7 @@ fn index_var(
|
|||
return Ok(vars);
|
||||
}
|
||||
FlatType::EmptyRecord => {
|
||||
debug_assert!(matches!(ctor, IndexCtor::Record(&[])));
|
||||
debug_assert!(matches!(ctor, IndexCtor::Record(..)));
|
||||
// If there are optional record fields we don't unify them, but we need to
|
||||
// cover them. Since optional fields correspond to "any" patterns, we can pass
|
||||
// through arbitrary types.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue