mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Empty records are exhaustive
This commit is contained in:
parent
38fd9e8286
commit
5be9a001e3
1 changed files with 1 additions and 1 deletions
|
@ -117,8 +117,8 @@ impl Pattern {
|
||||||
| UnsupportedPattern(..)
|
| UnsupportedPattern(..)
|
||||||
| MalformedPattern(..)
|
| MalformedPattern(..)
|
||||||
| AbilityMemberSpecialization { .. } => true,
|
| AbilityMemberSpecialization { .. } => true,
|
||||||
|
RecordDestructure { destructs, .. } => destructs.is_empty(),
|
||||||
AppliedTag { .. }
|
AppliedTag { .. }
|
||||||
| RecordDestructure { .. }
|
|
||||||
| NumLiteral(..)
|
| NumLiteral(..)
|
||||||
| IntLiteral(..)
|
| IntLiteral(..)
|
||||||
| FloatLiteral(..)
|
| FloatLiteral(..)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue