diff --git a/compiler/liftdestructors.nim b/compiler/liftdestructors.nim index 6aa2634401..9020a6f7ff 100644 --- a/compiler/liftdestructors.nim +++ b/compiler/liftdestructors.nim @@ -1207,6 +1207,8 @@ proc produceSym(g: ModuleGraph; c: PContext; typ: PType; kind: TTypeAttachedOp; result.ast[pragmasPos].add newTree(nkExprColonExpr, newIdentNode(g.cache.getIdent("raises"), info), newNodeI(nkBracket, info)) + if kind == attachedDestructor: + incl result.options, optQuirky completePartialOp(g, idgen.module, typ, kind, result)