BYOND Version:514
Operating System:Windows 10 Pro 64-bit
Web Browser:Firefox 107.0
Applies to:Dream Maker
Status: Resolved

This issue has been resolved.
Descriptive Problem Summary:

Reusing a variable name in the same scope of a proc doesn't properly error, but ONLY if the first variable is set to something related to another, global variable

Numbered Steps to Reproduce Problem:
Create a global variable
Create a new proc
Set a new variable to the global var
Set another new var of the same name to some value

Code Snippet (if applicable) to Reproduce Problem:
// Silences unused errors, unrelated to bug


var/testing = jerry
var/testing = list()

Expected Results:
An error

Actual Results:
Silently continues on, introducing var shadowing in the same scope

Does the problem occur:
Every time? Or how often? Every time
In other games? N/A
In other user accounts? Yes
On other computers? Yes

When does the problem NOT occur?
If the first var isn't a global. If the second doesn't get a specified value we get other errors about expecting a =

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit to download old versions for testing.)
Errors as expected on 1585, breaks on 1586


Spevacus resolved issue

Resolved over on