summary refs log tree commit diff stats
path: root/tests/global/t21896.nim
Commit message (Expand)AuthorAgeFilesLines
* fix #21896 asign parameter to global variable generates invalid code (#21900)Bung2023-05-241-0/+9
='linenumbers'>
1
2
3
4
5
6
7
8
9
10
11
12
13












                        
discard """
  output: '''hi'''
"""

# bug #4551

proc foo() =
    let arr = ["hi"]
    for i, v in arr:
        let bar = proc =
            echo v
        bar()
foo()