Fix add(string, cstring) when the lhs is null (#8951)
This commit is contained in:
parent
87955eaf30
commit
b195204549
2 changed files with 8 additions and 3 deletions
4
tests/js/taddnilstr.nim
Normal file
4
tests/js/taddnilstr.nim
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
var x = "foo".cstring
|
||||
var y: string
|
||||
add(y, x)
|
||||
doAssert y == "foo"
|
||||
Loading…
Add table
Add a link
Reference in a new issue