fixes a C code generator regression, no need to backport, only the 1.4 line is affected (#15569)

This commit is contained in:
Andreas Rumpf 2020-10-14 13:58:36 +02:00 • committed by GitHub
commit 8978112457
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 1 deletions

18
tests/ccgbugs/t2procs.nim Normal file
View file

@ -0,0 +1,18 @@
discard """
output: '''before
1
before
2'''
"""
proc fn[T1, T2](a: T1, b: T2) =
a(1)
b(2)
fn( (proc(x: int) =
echo "before" # example block, can span multiple lines
echo x),
(proc (y: int) =
echo "before"
echo y)
)