summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--compiler/semtypes.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim
index b633c87ab..f2fda3453 100644
--- a/compiler/semtypes.nim
+++ b/compiler/semtypes.nim
@@ -1620,6 +1620,7 @@ proc processMagicType(c: PContext, m: PSym) =
     rawAddSon(m.typ, newTypeS(tyNone, c))
   of mPNimrodNode:
     incl m.typ.flags, tfTriggersCompileTime
+  of mException: discard
   else: localError(m.info, errTypeExpected)
 
 proc semGenericConstraints(c: PContext, x: PType): PType =