Files
Aleksei Kniazev af8d542c7d IDEA-CR-49176: correctly handle name clashes when inlining function (PY-36497, PY-36485, PY-36486, PY-36502)
- refs that resolve to locally available targets are not renamed
- fixed scope computation for generating new names

GitOrigin-RevId: c2ab0c93c9712f6be3ffcb4e73f72f4771e96997
2019-07-08 18:05:36 +03:00

11 lines
204 B
Python

def MyClass():
def __init__(self): # init is necessary to check resolve target
pass
def my_function():
res = MyClass() # should not be renamed
return res
x = my_fun<caret>ction()