14 lines
175 B
Nim
14 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()
|