tcodegendeclvar.nim 156 B

1234567891011
  1. discard """
  2. output: '''
  3. -1
  4. 2
  5. '''
  6. ccodecheck: "'console.log(-1); var v_' \\d+ ' = [2]'"
  7. """
  8. var v {.codegenDecl: "console.log(-1); var $2".} = 2
  9. echo v