Skip to content

Commit

Permalink
fix #14534 (#15060) [backport]
Browse files Browse the repository at this point in the history
  • Loading branch information
bung87 authored Jul 25, 2020
1 parent 8211d38 commit 9746868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/jsgen.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1689,7 +1689,7 @@ proc createVar(p: PProc, typ: PType, indirect: bool): Rope =
of tyObject:
var initList: Rope
createObjInitList(p, t, initIntSet(), initList)
result = ("{$1}") % [initList]
result = ("({$1})") % [initList]
if indirect: result = "[$1]" % [result]
of tyVar, tyPtr, tyLent, tyRef, tyPointer:
if mapType(p, t) == etyBaseIndex:
Expand Down

0 comments on commit 9746868

Please sign in to comment.