bugfix: optimization of complex constant string concatenations

This commit is contained in:
Araq
2012-02-17 02:16:33 +01:00
parent 88f9eff38f
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