* add testcase for #12682 * fix
This commit is contained in:
parent
28bbcd9d45
commit
bc9a521270
1 changed files with 11 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue