Files
Nim/tests/whenstmt/t12517.nim
Can Lehmann 2102e3b02f Fix #12517 Allow single branch when nimvm statements (#20577)
Allow single branch when statements
2022-10-17 08:01:53 +02:00

22 lines
184 B
Nim

# Test based on issue #12517
discard """
nimout: '''
nimvm
both
'''
output: '''
both
'''
"""
proc test() =
when nimvm:
echo "nimvm"
echo "both"
static:
test()
test()