circuitpython/tests/feature_check/reverse_ops.py
2021-03-15 19:27:36 +05:30

10 lines
117 B
Python

class Foo:
def __radd__(self, other):
pass
try:
5 + Foo()
except TypeError:
print("TypeError")