* fixes #9578

* fixed and expanded test
This commit is contained in:
jcosborn 2019-05-06 02:34:03 -05:00 • committed by Andreas Rumpf
commit b1091f85d4
7 changed files with 109 additions and 0 deletions

View file

@ -995,6 +995,7 @@ proc genBracketExpr(p: BProc; n: PNode; d: var TLoc) =
of tyCString: genCStringElem(p, n, n.sons[0], n.sons[1], d)
of tyTuple: genTupleElem(p, n, d)
else: internalError(p.config, n.info, "expr(nkBracketExpr, " & $ty.kind & ')')
discard getTypeDesc(p.module, n.typ)
proc isSimpleExpr(n: PNode): bool =
# calls all the way down --> can stay expression based