Files
Nim/tests/stdlib/tvarargs.nim
ringabout 3d2f0e2c7c make more standard libraries work with nimPreviewSlimSystem (#20343)
* make more standard libraries work with `nimPreviewSlimSystem`

* typo

* part two

* Delete specutils.nim

* fixes more tests

* more fixes

* fixes tests

* fixes three more tests

* add formatfloat import

* fix

* last
2022-09-27 20:06:23 +02:00

19 lines
324 B
Nim

discard """
targets: "c js"
matrix: "--gc:refc; --gc:arc"
"""
import std/assertions
template main =
proc hello(x: varargs[string]): seq[string] =
var s: seq[string]
s.add x
s
doAssert hello() == @[]
doAssert hello("a1") == @["a1"]
doAssert hello("a1", "a2") == @["a1", "a2"]
static: main()
main()