Merge pull request #8021 from yglukhov/seq-lit
Added NIM_STRLIT_FLAG to seq literals
This commit is contained in:
commit
f1d5e9090e
1 changed files with 1 additions and 1 deletions
|
|
@ -2436,7 +2436,7 @@ proc genConstSimpleList(p: BProc, n: PNode): Rope =
|
||||||
addf(result, "}$n", [])
|
addf(result, "}$n", [])
|
||||||
|
|
||||||
proc genConstSeq(p: BProc, n: PNode, t: PType): Rope =
|
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:
|
if n.len > 0:
|
||||||
# array part needs extra curlies:
|
# array part needs extra curlies:
|
||||||
data.add(", {")
|
data.add(", {")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue