summary refs log tree commit diff stats
path: root/compiler/transf.nim
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@gmail.com>2017-02-02 21:36:49 +0100
committerDominik Picheta <dominikpicheta@gmail.com>2017-02-02 21:36:49 +0100
commit656da1f6a99c504eb5bf7c51b01b8fe00e2afd71 (patch)
treeb6b1b3a7731b01511758bf45962eb9d3fbda3dc7 /compiler/transf.nim
parent814f527175c0141c8f023b100461e72a9e990e6c (diff)
downloadNim-656da1f6a99c504eb5bf7c51b01b8fe00e2afd71.tar.gz
WIP: `as` with generics.
Diffstat (limited to 'compiler/transf.nim')
-rw-r--r--compiler/transf.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/transf.nim b/compiler/transf.nim
index 8944ff43b..838b2d902 100644
--- a/compiler/transf.nim
+++ b/compiler/transf.nim
@@ -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())`