Incorrectly adding a number and a string in a const setting will produce a buggy output instead of erroring. In the snippet, `20 + "foo"` resolves to "foofoo", instead of being a compile error.
Numbered Steps to Reproduce Problem:
1. Run snippet.
Code Snippet (if applicable) to Reproduce Problem:
/world/New()
var/x = 20 + "foo"
world.log << x
Expected Results:
Compile error, cannot add number and string.
Actual Results:
Buggy string printed, "foofoo".
Does the problem occur:
Every time? Or how often? Every time
In other games? N/A
In other user accounts? N/A
On other computers? Yes, on Linux build.
When does the problem NOT occur?
N/A
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Unknown, has been happening for a few years at least. Occurs in stable 512.1488
Workarounds:
Doing this concat at runtime correctly causes a runtime error.
Output: