Files
openide/python/testData/resolve/GlobalNotDefinedAtTopLevel.py
Andrey Vlasovskikh 359b13a62f Resolve PyReferenceImpl refs to all outer definitions in the current file
This applies to all outer definitions except imports where we resolve
only to the latest imports as we used to do. This is required for
detecting and optimizing unused imports and adding imports during
refactorings.

The implementation of ResolveProcessor has been rewritten as
PyResolveProcessor.
2016-01-20 13:14:26 +03:00

4 lines
55 B
Python

def f():
global foo
return foo
# <ref>