You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: standard/patterns.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -309,7 +309,7 @@ property_subpattern
309
309
;
310
310
```
311
311
312
-
It is an error if any *subpattern* of a *property_pattern* does not contain an *identifier*.
312
+
It is an error if any *subpattern* of a *property_pattern* does not contain a *subpattern_name*.
313
313
314
314
It is a compile-time error if the *type* is a nullable value type ([§8.3.12](types.md#8312-nullable-value-types)) or a nullable reference type ([§8.9.3](types.md#893-nullable-reference-types)).
315
315
@@ -327,13 +327,13 @@ It is a compile-time error if the *type* is a nullable value type ([§8.3.12](ty
The *property_pattern* maybeusedtopattern-matchwithanonymoustypes.
335
335
336
-
A *property_subpattern* mayreferenceanestedmember. Insuchacase, thereceiverfor each name lookup is the type of the previous member *T₀*, starting from the *input type* of the *property_pattern*. If *T* is a nullable type, *T₀* is its underlying type, otherwise *T₀* is equal to *T*. For example, a pattern of the form `{ Prop1.Prop2: pattern }` isexactlyequivalentto `{ Prop1: { Prop2: pattern } }`.
336
+
A *subpattern_name* mayreferenceanestedmember. Insuchacase, thereceiverfor each name lookup is the type of the previous member *T₀*, starting from the *input type* of the *property_pattern*. If *T* is a nullable type, *T₀* is its underlying type, otherwise *T₀* is equal to *T*. For example, a pattern of the form `{ Prop1.Prop2: pattern }` isexactlyequivalentto `{ Prop1: { Prop2: pattern } }`.
0 commit comments