WIP: as with generics.
This commit is contained in:
parent
814f527175
commit
656da1f6a9
5 changed files with 21 additions and 10 deletions
|
|
@ -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].kind == nkInfix and considerQuotedIdent(n[0][0]).s == "as":
|
||||
if n[0].isExceptAs():
|
||||
let excTypeNode = n[0][1]
|
||||
let actions = newTransNode(nkStmtList, n[1].info, 2)
|
||||
# Generating `let exc = (excType)(getCurrentException())`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue