parent
fe0291f127
commit
a296f091e4
2 changed files with 19 additions and 1 deletions
11
tests/template/tprocparshadow.nim
Normal file
11
tests/template/tprocparshadow.nim
Normal file
|
|
@ -0,0 +1,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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue