Files
Nim/tests/js/tcodegendeclproc.nim
2026-06-11 08:56:45 +02:00

12 lines
221 B
Nim

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