closes #3670 [add testcase for #3670] (#15808)

* add testcase

* Update tests/template/twhenintemplates.nim

Co-authored-by: Clyybber <darkmine956@gmail.com>
This commit is contained in:
flywind
2020-11-02 02:53:00 +08:00
committed by GitHub
parent 1eb4a38a50
commit 98cec6b692

View File

@@ -0,0 +1,11 @@
# bug #3670
template someTempl(someConst: bool) =
when someConst:
var a : int
if true:
when not someConst:
var a : int
a = 5
someTempl(true)