* Fixes #5225

* Fixes #5225

* Fixes #5225

fix typo
This commit is contained in:
Lolo Iccl 2017-01-19 05:04:03 +09:00 • committed by Andreas Rumpf
commit a296f091e4
2 changed files with 19 additions and 1 deletions

View 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)