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