diff --git a/compiler/seminst.nim b/compiler/seminst.nim index 5b0fe6ba25..8d50a1c37e 100644 --- a/compiler/seminst.nim +++ b/compiler/seminst.nim @@ -272,9 +272,9 @@ proc instantiateProcType(c: PContext, pt: TIdTable, # call head symbol, because this leads to infinite recursion. if oldParam.ast != nil: var def = oldParam.ast.copyTree - if def.kind == nkCall: + if def.kind in nkCallKinds: for i in 1..