'https://github.com/numba/numba/issues/2179
Looplifting transformation is using the wrong verion of variable `h`.'

def test_variable_scope_bug(self):

    from numba import jit
    def bar(x):
        return x
    def foo(x):
        h = 0.0
        for k in range(x):
            h = (h + k)
        h = (h - bar(x))
        return h
    cfoo = jit(foo)
    self.assertEqual(foo(10), cfoo(10))
