closes #22846; adds a test case (#23374)

closes #22846

(cherry picked from commit 6ebad30e7a)
This commit is contained in:
ringabout
2024-03-08 14:06:04 +08:00
committed by narimiran
parent 1e2d98a3e0
commit 6eb3e3134e

View File

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