OpenDream icon indicating copy to clipboard operation
OpenDream copied to clipboard

Add a warning for doing assignment in a conditional

Open ike709 opened this issue 3 years ago • 0 comments

Example from coderbus:

var/thing="Thing"
if(thing="Thong")
    world.log<<thing

Output: Thong

This is a pretty common typo that the compiler could easily catch, but we might need to come up with a sane way to disable a warning in DM like C# pragmas.

ike709 avatar Jan 18 '22 23:01 ike709