tvarargs.nim 245 B

12345678910111213141516
  1. discard """
  2. output: "Hello, world"
  3. """
  4. # bug #3584
  5. type
  6. ConsoleObj {.importc.} = object of RootObj
  7. log*: proc() {.nimcall varargs.}
  8. Console = ref ConsoleObj
  9. var console* {.importc.}: Console
  10. when true:
  11. console.log "Hello, world"