We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46684e0 commit 72807faCopy full SHA for 72807fa
accepted/future-releases/0546-patterns/feature-specification.md
@@ -2806,10 +2806,9 @@ To match a pattern `p` against a value `v`:
2806
2807
4. Otherwise, for each (non-rest) entry in `p`, in source order:
2808
2809
- 1. Evaluate the key `expression` to `k` and call `containsKey(k)` on
2810
- the value. If this returns `false`, the map does not match.
+ 1. Evaluate the key `expression` to `k`.
2811
2812
- 2. Otherwise, evaluate `v[k]` to `r`.
+ 2. Evaluate `v[k]` to `r`.
2813
2814
3. If `r != null || (null is V) && v.containsKey(k)` evaluates to
2815
`false` then the map does not match.
0 commit comments