Added NIM_STRLIT_FLAG to seq literals
This commit is contained in:
parent
1c58f31a71
commit
7a4b343d8d
1 changed files with 1 additions and 1 deletions
|
|
@ -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(", {")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue