diff options
author | flywind <43030857+xflywind@users.noreply.github.com> | 2020-11-09 18:46:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-09 11:46:25 +0100 |
commit | 673c5990c6b2130dd3b1a4854eb5d85c73a90cd0 (patch) | |
tree | b05be312523b0a48780eeb4b92425b0f52740f23 /tests/pragmas | |
parent | 3be404af0488805493a46329d35ad276d739151d (diff) | |
download | Nim-673c5990c6b2130dd3b1a4854eb5d85c73a90cd0.tar.gz |
fix #12558 (#15864)
* fix #12558 * Update compiler/pragmas.nim
Diffstat (limited to 'tests/pragmas')
-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() |