From 3b85c1a2e9b913a11fc7cd202b7e0a617d782cf4 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Wed, 25 Sep 2024 19:00:06 +0800 Subject: fixes #24167; {.push deprecated.} for templates (#24170) fixes #24167 --- tests/pragmas/tpush.nim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/pragmas/tpush.nim') 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.} -- cgit 1.4.1-2-gfad0