dplassgit / d2lang

D2 is a strongly-typed, statically-typed, (mostly) inferred-type compiled language.
MIT License
6 stars 0 forks source link

Assignments to globals are sometimes optimized out incorrectly #357

Closed dplassgit closed 3 weeks ago

dplassgit commented 3 weeks ago

buffering=1 print "buffering is " println buffering

When it sees the println, it replaces it with 1, and then removes the assignment, which is wrong.