summary refs log blame commit diff stats
path: root/tests/js/tvarargs.nim
blob: e2366d7a9d2a978f70ae3828464c6d9508614395 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
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"