• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/ucode/tests/custom/99_bugs/21_compiler_parenthesized_prop_keyword

  1 When compiling a parenthesized property access expression, the compiler
  2 didn't instruct the lexer to treat a potential subsequent keyword as label,
  3 leading to an incorrect syntax error exception.
  4 
  5 -- Expect stdout --
  6 true
  7 true
  8 -- End --
  9 
 10 -- Testcase --
 11 {%
 12         let x = { default: true };
 13 
 14         print(x.default, "\n");         // this was okay
 15         print((x.default), "\n");       // this failed
 16 %}
 17 -- End --

This page was automatically generated by LXR 0.3.1.  •  OpenWrt