summary refs log tree commit diff stats
path: root/tests/js/tcodegendeclvar.nim
blob: 645443ef7a7acbfe6b7a3bd6de7cec62e58035c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
discard """
  output: '''
-1
2
'''
  ccodecheck: "'console.log(-1); var v_' \\d+ ' = [2]'"
"""

var v {.codegenDecl: "console.log(-1); var $2".} = 2
echo v