Simple Dict implementation does not seem to work

Here is the code:

@jit(nopython=True, debug=True)
def Sum(unique, values):
    D0 = {}
    for i in range(len(unique)):
        D0[unique[i]] = 0

ls = np.array([0, 1, 2], dtype=np.int64)
Sum(ls, ls)

Could you please tell me what I am doing wrong?

Thank you,
Andrew

ERRORS:
Exception has occurred: AssertionError

<code object Sum at 0x000001CAE92CA830, file “…ExploreGrid.py”, line 104> != <code object Sum at 0x000001CAE9391DF0, file “…ExploreGrid.py”, line 11>

KeyError: (11, ‘…ExploreGrid.py’, <code object Sum at 0x000001CAE9391DF0, file “…ExploreGrid.py”, line 11>)

This piece works for me, with numba==0.60.0. I am guessing the origin of error is elsewhere in the script.