PY-6637 Add test cases on detection of nonlocal references inside escalated function
[idea/community.git] / python / testData / refactoring / convertTopLevel / nonlocalReferencesInInnerFunction.py
1 def func():
2     def lo<caret>cal():
3         x = True
4         def nested():
5             nonlocal x
6             x = False