Correct about what? Yes, one
i
hides another. But compilers are free to warn or not warn on anything they want.