summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/complex_reverse_op.py
blob: a7351949d0cea37b38739073d790cdbc59a9cddd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# test complex interacting with special reverse methods


class A:
    def __radd__(self, x):
        print("__radd__")
        return 2


print(1j + A())