The most recent set of the variable, based on the name, takes priority.

It is (currently) not possible to have a local variable and a global variable with the same name (and I would suspect different values).