Treat the static block as a normal block, don't leak any identifier in the outer scope. Fixes #5958
9 lines
96 B
Nim
9 lines
96 B
Nim
discard """
|
|
line: 9
|
|
errormsg: "undeclared identifier: 'a'"
|
|
"""
|
|
|
|
static:
|
|
var a = 1
|
|
|
|
echo a
|