summary refs log blame commit diff stats
path: root/tests/js/tmodify_cstring.nim
blob: 82f8ccb23253218965a981d466072842e7502b6c (plain) (tree)
1
2
3
4
5
6





                                                    
discard """
  errormsg: "cstring doesn't support `[]=` operator"
"""

var x = cstring"abcd"
x[0] = 'x'