diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2024-09-25 19:00:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-25 13:00:06 +0200 |
commit | 3b85c1a2e9b913a11fc7cd202b7e0a617d782cf4 (patch) | |
tree | cb7b57e379b97876a36a37fe1d63c6699c00b730 /tests/pragmas/tpush.nim | |
parent | b9de2bb4f3864d264c3aeffdc630227448ad8c14 (diff) | |
download | Nim-3b85c1a2e9b913a11fc7cd202b7e0a617d782cf4.tar.gz |
fixes #24167; {.push deprecated.} for templates (#24170)
fixes #24167
Diffstat (limited to 'tests/pragmas/tpush.nim')
-rw-r--r-- | tests/pragmas/tpush.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/pragmas/tpush.nim b/tests/pragmas/tpush.nim index cb411714e..a505bb32f 100644 --- a/tests/pragmas/tpush.nim +++ b/tests/pragmas/tpush.nim @@ -124,3 +124,9 @@ foo31() foo41() {.pop.} + +block: + {.push deprecated.} + template test() = discard + test() + {.pop.} |