def test_add_operator(self):
        """
        Test re-implementing operator.add() for a custom type with @overload.
        """
        pyfunc = call_add_operator
        cfunc = jit(nopython=True)(pyfunc)

        self.assertPreciseEqual(cfunc(1, 2), 3)
        self.assertPreciseEqual(cfunc(MyDummy2(), MyDummy2()), 42)

        # this will call add(Number, Number) as MyDummy implicitly casts to
        # Number
        self.assertPreciseEqual(cfunc(MyDummy(), MyDummy()), 84)

        Test re-implementing operator.add() for a custom type with @overload.
        
numba/tests/test_extending.py