mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-05 19:52:07 +07:00
Update test data and reduce manual language level setup GitOrigin-RevId: d6ddec1b2b29a2b7f1a34cfb5982fd975de78d65
31 lines
407 B
Python
31 lines
407 B
Python
a = 1
|
|
|
|
def foo():
|
|
print(<warning descr="Local variable 'a' might be referenced before assignment">a</warning>) #fail
|
|
a = 21
|
|
print(a) #pass
|
|
|
|
|
|
foo()
|
|
print(a)
|
|
|
|
if bla_bla(): #pass
|
|
b = 1
|
|
print(<warning descr="Name 'b' can be undefined">b</warning>) #fail
|
|
print(b) #pass
|
|
c = 1
|
|
|
|
def buzz():
|
|
print(c) #pass
|
|
|
|
buzz()
|
|
|
|
print(BLA_BLA_BLA) #pass
|
|
|
|
if foo():
|
|
d = 1
|
|
else:
|
|
d = 2
|
|
|
|
print(d) #pass
|