Skip to content

Commit 6d2ab58

Browse files
committed
Mention restriction against _1, _2, ... as named tuple labels
1 parent 5ad07e4 commit 6d2ab58

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/_docs/reference/experimental/named-tuples.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ The following restrictions apply to named tuple elements:
159159
(tuple: Tuple) match
160160
case (age = x) => // error
161161
```
162+
4. Regular selector names `_1`, `_2`, ... are not allowed as names in named tuples.
162163

163164
### Syntax
164165

0 commit comments

Comments
 (0)