summary refs log blame commit diff stats
path: root/tests/template/tprocparshadow.nim
blob: b99cd0b6cfb74a2cf8d02c923e46ce321fa84945 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                       
discard """
  output: "10"
"""

template something(name: untyped) =
  proc name(x: int) =
    var x = x # this one should not be rejected by the compiler (#5225)
    echo x

something(what)
what(10)