fixes #7972
This commit is contained in:
parent
82a1576263
commit
ec4985a573
2 changed files with 28 additions and 10 deletions
|
|
@ -17,3 +17,18 @@ if true:
|
|||
writeLine stdout, "2"
|
||||
write stdout, "3"
|
||||
echo "4"
|
||||
|
||||
# bug #7972
|
||||
|
||||
template optimizeLogWrites*{
|
||||
write(f, x)
|
||||
write(f, y)
|
||||
}(x, y: string{lit}, f: File) =
|
||||
write(f, x & y)
|
||||
|
||||
proc foo() =
|
||||
const N = 1
|
||||
stdout.write("")
|
||||
stdout.write("")
|
||||
|
||||
foo()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue