summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-06-14 17:38:12 +0200
committerGitHub <noreply@github.com>2018-06-14 17:38:12 +0200
commitf1d5e9090e137348b805b560cc714bb698054b18 (patch)
tree5ab7356d39c843180b76df0c8dcfe415d13ca993 /compiler
parent21a17f3911c0e23381f41cbca6200a09f128bbbb (diff)
parent7a4b343d8d40193138b54967bfef2b66c387f877 (diff)
downloadNim-f1d5e9090e137348b805b560cc714bb698054b18.tar.gz
Merge pull request #8021 from yglukhov/seq-lit
Added NIM_STRLIT_FLAG to seq literals
Diffstat (limited to 'compiler')
-rw-r--r--compiler/ccgexprs.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim
index b5dcc76e5..82cc3a1fb 100644
--- a/compiler/ccgexprs.nim
+++ b/compiler/ccgexprs.nim
@@ -2436,7 +2436,7 @@ proc genConstSimpleList(p: BProc, n: PNode): Rope =
   addf(result, "}$n", [])
 
 proc genConstSeq(p: BProc, n: PNode, t: PType): Rope =
-  var data = "{{$1, $1}" % [n.len.rope]
+  var data = "{{$1, $1 | NIM_STRLIT_FLAG}" % [n.len.rope]
   if n.len > 0:
     # array part needs extra curlies:
     data.add(", {")