mlox/lox.t/if/dangling_else.lox
2024-08-03 02:44:12 +02:00

3 lines
168 B
Lox

// A dangling else binds to the right-most if.
if (true) if (false) print "bad"; else print "good"; // expect: good
if (false) if (true) print "bad"; else print "bad";