Files
openide/python/testData/inspections/AddGlobalExistingStatement.py
2011-01-31 15:26:50 +01:00

10 lines
163 B
Python

a = 1
def foo():
global b
print <caret><warning descr="Local variable 'a' might be referenced before assignment">a</warning>
a = 2
print a
foo()