Nim/tests/js/taddnilstr.nim

4 lines
66 B
Nim

var x = "foo".cstring
var y: string
add(y, x)
doAssert y == "foo"