mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-24 08:15:25 +00:00
bugfix: optimization of complex constant string concatenations
This commit is contained in:
11
tests/run/tconcat.nim
Normal file
11
tests/run/tconcat.nim
Normal file
@@ -0,0 +1,11 @@
|
||||
discard """
|
||||
output: "DabcD"
|
||||
"""
|
||||
|
||||
const
|
||||
x = "abc"
|
||||
|
||||
var v = "D" & x & "D"
|
||||
|
||||
echo v
|
||||
|
||||
Reference in New Issue
Block a user