summary refs log blame commit diff stats
path: root/tests/js/timplicit_nodecl.nim
blob: 79a921815052866c81ea6ed37039219729ab054e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                    
discard """
  output: '''22
22'''
"""

# test implicit nodecl
block:
  {. emit: "var importMe = 22;" .}
  var
    a {. importc: "importMe" .}: int
    importMe {. importc .}: int
  echo a
  echo importMe