made nodecl implicit for vars in the js backend. (#5297)

This commit is contained in:
Michael Jendrusch 2017-01-29 17:34:08 +01:00 • committed by Andreas Rumpf
commit d75760f5d3
3 changed files with 15 additions and 2 deletions

View file

@ -0,0 +1,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