'Test compiling new version in an ambiguous case'

def test_ambiguous_new_version(self):

    @jit
    def foo(a, b):
        return (a + b)
    INT = 1
    FLT = 1.5
    self.assertAlmostEqual(foo(INT, FLT), (INT + FLT))
    self.assertEqual(len(foo.overloads), 1)
    self.assertAlmostEqual(foo(FLT, INT), (FLT + INT))
    self.assertEqual(len(foo.overloads), 2)
    self.assertAlmostEqual(foo(FLT, FLT), (FLT + FLT))
    self.assertEqual(len(foo.overloads), 3)
    self.assertAlmostEqual(foo(1, 1), (INT + INT))
    self.assertEqual(len(foo.overloads), 4, "didn't    compile    a    new    version")
