Files
Nim/tests/template/tparamscope.nim
Clyybber fb58066b61 Fix #5691 (#15158)
* Fix #5691
* Cleanup and thoughts
* Use scope approach
* Seperate defined/declared/declaredInScope magics
* Fix declaredInScope
* Update spec accordingly
2020-08-27 15:50:59 +02:00

11 lines
152 B
Nim

discard """
errormsg: "undeclared identifier: 'a'"
line: 10
"""
template secondArg(a, b: typed): untyped =
b
echo secondArg((var a = 1; 1), a)