Skip to content

Commit 3938701

Browse files
committed
Remove arity checking and rest elements from map exhaustiveness.
Fix #2973.
1 parent 099db02 commit 3938701

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

accepted/future-releases/0546-patterns/exhaustiveness.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -565,12 +565,10 @@ The lifted space union for a pattern with matched value type `M` is:
565565
566566
* **Map pattern:**
567567
568-
1. A space whose type is the type of the pattern and with an arity
569-
restriction whose length is the number of non-rest elements and whose
570-
`hasRest` is `true` if there is a rest element. The space's properties
568+
1. A space whose type is the type of the pattern. The space's properties
571569
are:
572570
573-
2. For each non-rest entry in the pattern:
571+
2. For each entry in the pattern:
574572
575573
1. A property with element key `k` where `k` is the entry's key
576574
constant whose subspace is the lifted space union of the

0 commit comments

Comments
 (0)