mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
* Fix #5691 * Cleanup and thoughts * Use scope approach * Seperate defined/declared/declaredInScope magics * Fix declaredInScope * Update spec accordingly
11 lines
152 B
Nim
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)
|