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

closes #22846
This commit is contained in:
ringabout
2024-03-08 14:06:04 +08:00
committed by GitHub
parent c2d2b6344d
commit 6ebad30e7a

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)