Files
openide/python/testData/refactoring/inlineFunction/callAsDefaultValue/main.py
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
117 B
Python

def foo():
x = 1
y = 1
res = x + y
return res
x = 2
y = 2
def bar(arg=fo<caret>o()):
return arg