This commit is contained in:
Araq 2016-01-18 14:54:35 +01:00
commit 7ee1847137
2 changed files with 14 additions and 1 deletions

12
tests/js/tvarargs.nim Normal file
View file

@ -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"