summary refs log tree commit diff stats
path: root/tests/js/tvarargs.nim
blob: b8c5327675f5ae99d82f73b665dda4eca7b77316 (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 isMainModule:
  console.log "Hello, world"