mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-28 04:37:32 +07:00
GitOrigin-RevId: e1049aec62e8c8240a555fdf818820e797d5c9a6
9 lines
189 B
Python
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) |