bugfix: optimization of complex constant string concatenations

This commit is contained in:
Araq 2012-02-17 02:16:33 +01:00
commit 97366d4419
7 changed files with 43 additions and 16 deletions

11
tests/run/tconcat.nim Normal file
View file

@ -0,0 +1,11 @@
discard """
output: "DabcD"
"""
const
x = "abc"
var v = "D" & x & "D"
echo v