Skip to content

Commit

Permalink
improves #191
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed May 30, 2021
1 parent e3d4c26 commit b0334ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cparser.nim
Original file line number Diff line number Diff line change
Expand Up @@ -3176,6 +3176,8 @@ proc parseClassEntity(p: var Parser; genericParams: PNode; private: bool): PNode
if p.tok.xkind == pxAsgn:
getTok(p, def)
value = assignmentExpression(p)
elif p.tok.xkind == pxCurlyLe:
value = parseInitializer(p, nkTupleConstr, discardVarParam(bool))
if not private or pfKeepBodies in p.options.flags:
addSon(def, i, t, value)
if not isStatic:
Expand Down

0 comments on commit b0334ee

Please sign in to comment.