* Fix #5691 * Cleanup and thoughts * Use scope approach * Seperate defined/declared/declaredInScope magics * Fix declaredInScope * Update spec accordingly
This commit is contained in:
parent
d11933ad99
commit
fb58066b61
15 changed files with 180 additions and 85 deletions
10
tests/template/tparamscope.nim
Normal file
10
tests/template/tparamscope.nim
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
discard """
|
||||
errormsg: "undeclared identifier: 'a'"
|
||||
line: 10
|
||||
"""
|
||||
|
||||
|
||||
template secondArg(a, b: typed): untyped =
|
||||
b
|
||||
|
||||
echo secondArg((var a = 1; 1), a)
|
||||
Loading…
Add table
Add a link
Reference in a new issue