Files
Nim/tests/js/tmodify_cstring.nim
flywind 23b0b10886 fix #14157 (#15877)
* fix #14157

* Update compiler/jsgen.nim

* add changelog

* Update compiler/jsgen.nim

* Update tests/js/tmodify_cstring.nim

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
(cherry picked from commit 1f9bf43100)
2020-11-16 06:56:43 +01:00

7 lines
103 B
Nim

discard """
errormsg: "cstring doesn't support `[]=` operator"
"""
var x = cstring"abcd"
x[0] = 'x'