Files
openide/python/testData/refactoring/inlineFunction/specialMethod.py
2019-07-08 18:05:36 +03:00

9 lines
189 B
Python

class Additive:
def __init__(self, value):
self.value = value
def __add__(self, other):
return Additive(self.value + other.value)
Additive(1) +<caret> Additive(1)