Type unstable function because same variable name used twice

Okay, thanks. I expected something like that.