Fix add(string, cstring) when the lhs is null (#8951)

This commit is contained in:
LemonBoy 2018-09-12 10:10:00 +02:00 • committed by Andreas Rumpf
commit b195204549
2 changed files with 8 additions and 3 deletions

4
tests/js/taddnilstr.nim Normal file
View file

@ -0,0 +1,4 @@
var x = "foo".cstring
var y: string
add(y, x)
doAssert y == "foo"