summary refs log tree commit diff stats
path: root/tests/js
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2016-01-18 14:54:35 +0100
committerAraq <rumpf_a@web.de>2016-01-18 14:54:35 +0100
commit7ee1847137963431d2980bb9e030dbce6c2a8506 (patch)
treeb09f0525fbb5880aea8d0c5ea971ac5530c88be9 /tests/js
parent7211462a04f7759126145a878b98f598494322ea (diff)
downloadNim-7ee1847137963431d2980bb9e030dbce6c2a8506.tar.gz
fixes #3584
Diffstat (limited to 'tests/js')
-rw-r--r--tests/js/tvarargs.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/js/tvarargs.nim b/tests/js/tvarargs.nim
new file mode 100644
index 000000000..e2366d7a9
--- /dev/null
+++ b/tests/js/tvarargs.nim
@@ -0,0 +1,12 @@
+
+# bug #3584
+
+type
+  ConsoleObj {.importc.} = object of RootObj
+    log*: proc() {.nimcall varargs.}
+  Console = ref ConsoleObj
+
+var console* {.importc nodecl.}: Console
+
+when isMainModule:
+  console.log "Hello, world"