More progress towards a working #3691.

This commit is contained in:
Dominik Picheta 2017-02-03 19:50:22 +01:00
commit 1c233ba27a
5 changed files with 23 additions and 10 deletions

View file

@ -703,7 +703,7 @@ proc transformCall(c: PTransf, n: PNode): PTransNode =
proc transformExceptBranch(c: PTransf, n: PNode): PTransNode =
result = transformSons(c, n)
if n[0].isExceptAs():
if n[0].isInfixAs():
let excTypeNode = n[0][1]
let actions = newTransNode(nkStmtList, n[1].info, 2)
# Generating `let exc = (excType)(getCurrentException())`