Skip to content

Commit 003686d

Browse files
Add failing test for #19599
1 parent db67fac commit 003686d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test-data/unit/check-python310.test

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,6 +1559,16 @@ match m6:
15591559

15601560
[builtins fixtures/tuple.pyi]
15611561

1562+
[case testMatchTupleFields]
1563+
x: tuple[int, str] | None
1564+
match x:
1565+
case (a, b):
1566+
reveal_type(a) # N: Revealed type is "int"
1567+
reveal_type(b) # N: Revealed type is "str"
1568+
1569+
[builtins fixtures/tuple.pyi]
1570+
1571+
15621572
[case testMatchEnumSingleChoice]
15631573
from enum import Enum
15641574
from typing import NoReturn

0 commit comments

Comments
 (0)