From 6ebad30e7a96c67cc7a55aa3248849313c9f4e52 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Fri, 8 Mar 2024 14:06:04 +0800 Subject: [PATCH] closes #22846; adds a test case (#23374) closes #22846 --- tests/template/tparams_gensymed.nim | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/template/tparams_gensymed.nim b/tests/template/tparams_gensymed.nim index b68d7e253c..b559c2d9e1 100644 --- a/tests/template/tparams_gensymed.nim +++ b/tests/template/tparams_gensymed.nim @@ -16,6 +16,7 @@ wth (total: 6) S1 5 +abc ''' """ # bug #1915 @@ -394,3 +395,11 @@ proc chunkedReadLoop2 = test2 test1(); test2() + +block: # bug #22846 + template foo2(x: proc (y: string)) = + let f = x + f("abc") + + foo2(proc (y: string) = echo y) +