1 When compiling a parenthesized division or division-assignment expression, 2 the compiler didn't instruct the lexer to treat a potential subsequent 3 slash as operand, leading to an incorrect syntax error exception. 4 5 -- Expect stdout -- 6 0 7 0 8 0 9 0 10 -- End -- 11 12 -- Testcase -- 13 {% 14 print(a / 1, "\n"); // this was okay 15 print(a /= 1, "\n"); // okay too 16 print((a / 1), "\n"); // this failed 17 print((a /= 1), "\n"); // failed as well 18 %} 19 -- End --
This page was automatically generated by LXR 0.3.1. • OpenWrt