mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-20 19:40:43 +00:00
* fix #13515 * only compile test * no idea why this PR is unlocking this * don't rope in symchoices * even more restrictive
17 lines
168 B
Nim
17 lines
168 B
Nim
discard """
|
|
action: compile
|
|
"""
|
|
|
|
template test: bool = true
|
|
|
|
# compiles:
|
|
if not test:
|
|
echo "wtf"
|
|
|
|
# does not compile:
|
|
template x =
|
|
if not test:
|
|
echo "wtf"
|
|
|
|
x
|