summaryrefslogtreecommitdiff
path: root/testsuite/python310.py
blob: 2355f55e28bc0182d7e19657bd1d78ede5915e42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#: Okay
var, var2 = 1, 2
match (var, var2):
    case [2, 3]:
        pass
    case (1, 2):
        pass
    case _:
        print("Default")
#: Okay
var = 0, 1, 2
match var:
    case *_, 1, 2:
        pass
    case 0, *_, 2:
        pass
    case 0, 1, *_:
        pass
    case (*_, 1, 2):
        pass
    case (0, *_, 2):
        pass
    case (0, 1, *_):
        pass