diff options
Diffstat (limited to 'tests/js/tvarargs.nim')
-rw-r--r-- | tests/js/tvarargs.nim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/js/tvarargs.nim b/tests/js/tvarargs.nim new file mode 100644 index 000000000..8d57af58d --- /dev/null +++ b/tests/js/tvarargs.nim @@ -0,0 +1,15 @@ +discard """ + output: "Hello, world" +""" + +# bug #3584 + +type + ConsoleObj {.importc.} = object of RootObj + log*: proc() {.nimcall varargs.} + Console = ref ConsoleObj + +var console* {.importc.}: Console + +when true: + console.log "Hello, world" |