Different local variables in different functions are the same if copied

I had one function inside of a function library, then I created another function and copied all the stuff from the first function in there and created all the local variables manually so they have the same name as in the other function and all references to this variables work. Then I changed one of the variables from type Actor to Vector and compiled, and suddenly in the first function the variable was also changed from Vector to Actor. Then changed it back in the first function, compiled, and after this it was set to Actor in the second function.

Then I deleted the variable completely out of the second function and deleted all references and created the variable and references manually again and now it works, having the variable with same name but different type in both functions.

Hello ,

I was able to to reproduce this issue on 4.7.3, however after testing this issue on our latest internal build it appears as though this issue has been fixed. The engine will now throw an error that the variable has old references to the other function and if the variable is changed it will no longer effect other variables in other functions. I hope this answers any concerns you may have regarding this issue.

Make it a great day