summary refs log tree commit diff stats
path: root/tests/template/tprocparshadow.nim
blob: b99cd0b6cfb74a2cf8d02c923e46ce321fa84945 (plain) (blame)
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)
it 2.36.2.497.gbbea4dcf42) at 2025-02-07 14:06:22 +0000