* fix #12558
* Update compiler/pragmas.nim
This commit is contained in:
flywind 2020-11-09 18:46:25 +08:00 • committed by GitHub
commit 673c5990c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 1 deletions

15
tests/pragmas/t12558.nim Normal file
View file

@ -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()