summaryrefslogtreecommitdiff
path: root/tests/functional/u/used/used_before_assignment_conditional.py
blob: b024d28982f22a38711132642df4755c5c932fef (plain)
1
2
3
4
5
6
7
"""used-before-assignment cases involving IF conditions"""

if 1 + 1 == 2:
    x = x + 1  # [used-before-assignment]

if y:  # [used-before-assignment]
    y = y + 1