mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 17:10:24 +08:00
11 lines
155 B
Python
11 lines
155 B
Python
|
# test complex interacting with special reverse methods
|
||
|
|
||
|
|
||
|
class A:
|
||
|
def __radd__(self, x):
|
||
|
print("__radd__")
|
||
|
return 2
|
||
|
|
||
|
|
||
|
print(1j + A())
|