diff --git a/compiler/types.nim b/compiler/types.nim index 3726378273..d9e572cd54 100644 --- a/compiler/types.nim +++ b/compiler/types.nim @@ -740,7 +740,7 @@ proc typeToString(typ: PType, prefer: TPreferedDesc = preferName): string = addSep(prag) prag.add("gcsafe") if not hasImplicitRaises and prefer == preferInferredEffects and not isNil(t.owner) and not isNil(t.owner.typ) and not isNil(t.owner.typ.n) and (t.owner.typ.n.len > 0): - let effects = t.owner.typ.n[0] + let effects = t.n[0] if effects.kind == nkEffectList and effects.len == effectListLen: var inferredRaisesStr = "" let effs = effects[exceptionEffects]