summaryrefslogtreecommitdiff
path: root/tests/feature_check/reverse_ops.py
blob: 68eb91b44e39e72e3f7a050257afac3beb6eb657 (plain)
1
2
3
4
5
6
7
8
9
class Foo:
    def __radd__(self, other):
        pass


try:
    5 + Foo()
except TypeError:
    print("TypeError")