summary refs log tree commit diff stats
path: root/tests/nimdoc/m13129.nim
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2023-11-20 00:53:25 +0800
committerGitHub <noreply@github.com>2023-11-19 17:53:25 +0100
commitcecaf9c56b1240a44a4de837e03694a0c55ec379 (patch)
treebe4434e4aaad0ea631d4093454b04128d6dab087 /tests/nimdoc/m13129.nim
parent5dafcf4957a225b1f015d131299e51735e7bb1d3 (diff)
downloadNim-cecaf9c56b1240a44a4de837e03694a0c55ec379.tar.gz
fixes #22939; fixes #16890; push should but doesn't apply to importc … (#22944)
…var/let symbols


fixes #22939
fixes #16890

Besides, it was applied to let/const/var with pragmas, now it is
universally applied.

```nim
{.push exportc.}
proc foo =
  let bar = 12
  echo bar
{.pop.}
```

For example, the `bar` variable will be affected by `exportc`.
Diffstat (limited to 'tests/nimdoc/m13129.nim')
-rw-r--r--tests/nimdoc/m13129.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/nimdoc/m13129.nim b/tests/nimdoc/m13129.nim
index 145cae39c..34e118381 100644
--- a/tests/nimdoc/m13129.nim
+++ b/tests/nimdoc/m13129.nim
@@ -4,6 +4,7 @@ when defined(cpp):
   {.push header: "<vector>".}
   type
     Vector[T] {.importcpp: "std::vector".} = object
+  {.pop.}
 elif defined(js):
   proc endsWith*(s, suffix: cstring): bool {.noSideEffect,importjs: "#.endsWith(#)".}
 elif defined(c):