Files
openide/python/testData/refactoring/introduceVariable/iteratorFreeExpressionInComprehensionResult.py
andrey.matveev 07ebb19aee PY-33843 Fix problem with extracting constant from comprehension
(cherry picked from commit 72bb8e523471c9922ae3d8f95f7fa9ce1fe0009d)

IJ-MR-18836

GitOrigin-RevId: dadb7cf489a0501b834cff7e10979fab2c8ae8cd
2022-01-13 07:40:36 +00:00

4 lines
86 B
Python

y = 42
def foo():
return [x + <selection>y + 1</selection> for x in range(0, 42)]