More progress towards a working #3691.
This commit is contained in:
parent
656da1f6a9
commit
1c233ba27a
5 changed files with 23 additions and 10 deletions
|
|
@ -286,7 +286,7 @@ proc semTry(c: PContext, n: PNode): PNode =
|
|||
var typeNode = a.sons[j] # e.g. `Exception`
|
||||
var symbolNode: PNode = nil # e.g. `foobar`
|
||||
# Handle the case where the `Exception as foobar` syntax is used.
|
||||
if typeNode.isExceptAs():
|
||||
if typeNode.isInfixAs():
|
||||
typeNode = a.sons[j].sons[1]
|
||||
symbolNode = a.sons[j].sons[2]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue