PY-8604 Fixed: Rename refactoring for variable in generator comprehension leads to unresolved references

PY-18808 Fixed: Incorrect variable highlighting

Update PyReferenceImpl.resolvesToSameLocal to correctly handle comprehensions
This commit is contained in:
Semyon Proshev
2016-05-18 19:30:27 +03:00
parent 1f2d2cea0f
commit 8fd0d00f32
8 changed files with 140 additions and 15 deletions
@@ -0,0 +1,4 @@
def f():
xst = [3, 4]
<caret>k = 3
return [k for k in xst]