Nim/tests/errmsgs/tstaticexprnotype.nim
LemonBoy e89aaaeaab Open a new scope for static: expr blocks (#10649)
Bring this in line with how plain blocks are analysed and avoids codegen
errors if one references variables defined in such a block.
2019-02-23 12:05:07 +01:00

5 lines
58 B
Nim

discard """
action: reject
"""
let x = static: discard