Files
Nim/tests/lent/tnot_allowed_lent2.nim
2020-11-29 17:32:34 -08:00

15 lines
175 B
Nim

discard """
errormsg: "'x' cannot be assigned to"
line: 10
"""
proc bug14498 =
var a = @['a', 'b', 'c', 'd', 'e', 'f']
for x in a:
x = 'c'
echo a
bug14498()