

def test_float_to_complex(self):
    pyfunc = float_to_complex
    cr = compile_isolated(pyfunc, [types.float64])
    cfunc = cr.entry_point
    self.assertEqual(cr.signature.return_type, types.complex128)
    self.assertEqual(self((- 3.21)), pyfunc((- 3.21)))
    self.assertEqual(cfunc((- 3.21)), ((- 3.21) + 0j))

dataset/ETHPy150Open numba/numba/numba/tests/test_casting.py TestCasting.test_float_to_complex/VarMisuse@52/68 `cfunc`->`self`