mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 22:10:33 +00:00
* add testcase for #12682 * fix
This commit is contained in:
@@ -62,3 +62,14 @@ proc foo3[T](y: T) =
|
||||
bar2(y)
|
||||
|
||||
foo3(12)
|
||||
|
||||
block: # bug #12682
|
||||
template foo(): untyped =
|
||||
var c1 = locals()
|
||||
1
|
||||
|
||||
proc testAll()=
|
||||
doAssert foo() == 1
|
||||
let c2=locals()
|
||||
|
||||
testAll()
|
||||
|
||||
Reference in New Issue
Block a user