summaryrefslogtreecommitdiff
path: root/testsuite/python38.py
blob: f9276734194c51070ffbb8a31974e876696f6972 (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
25
26
27
28
29
30
#: Okay
def f1(a, /, b):
    pass


def f2(a, b, /):
    pass


def f3(
        a,
        /,
        b,
):
    pass


lambda a, /: None
#: Okay
if x := 1:
    print(x)
if m and (token := m.group(1)):
    pass
stuff = [[y := f(x), x / y] for x in range(5)]
#: E225:1:5
if x:= 1:
    pass
#: E225:1:18
if False or (x :=1):
    pass