summary refs log tree commit diff stats
path: root/compiler/semexprs.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/semexprs.nim')
-rw-r--r--compiler/semexprs.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim
index 7e141cb24..a6e2eaa23 100644
--- a/compiler/semexprs.nim
+++ b/compiler/semexprs.nim
@@ -921,7 +921,7 @@ const tyTypeParamsHolders = {tyGenericInst, tyCompositeTypeClass}
 proc readTypeParameter(c: PContext, typ: PType,
                        paramName: PIdent, info: TLineInfo): PNode =
   let ty = if typ.kind == tyGenericInst: typ.skipGenericAlias
-           else: (internalAssert typ.kind == tyCompositeTypeClass; typ.sons[1])
+           else: (internalAssert(typ.kind == tyCompositeTypeClass); typ.sons[1])
   
   let tbody = ty.sons[0]
   for s in countup(0, tbody.len-2):