The code below won't compile, because of redeclaration of the let a variable.
But if the second test template commented out it would work.
Why it works that way, and how to fix it?
template test*(name: string, body) =
block: body
template test*(name: string, group: string, body) =
block: body
test "a1":
let a = 1
test "a2":
let a = 1