blob: d0c958df3ec185eb64f0614c8e5f927389a87292 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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()
|