diff options
Diffstat (limited to 'tests/pragmas/t12558.nim')
-rw-r--r-- | tests/pragmas/t12558.nim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/pragmas/t12558.nim b/tests/pragmas/t12558.nim new file mode 100644 index 000000000..14fc74cee --- /dev/null +++ b/tests/pragmas/t12558.nim @@ -0,0 +1,15 @@ +discard """ + nimout: '''@["1", "2", "3"]''' +""" + +import sequtils + +{.push compile_time.} + +proc foo = + echo map_it([1, 2, 3], $it) + +{.pop.} + +static: + foo() |