Files
Nim/tests/js/tcodegendeclproc.nim
2017-12-01 15:42:10 +01:00

12 lines
208 B
Nim

discard """
output: '''
-1
8
'''
ccodecheck: "'console.log(-1); function fac_' \\d+ '(n_' \\d+ ')'"
"""
proc fac(n: int): int {.codegenDecl: "console.log(-1); function $2($3)".} =
return n
echo fac(8)