diff --git a/compiler/liftdestructors.nim b/compiler/liftdestructors.nim index bb0e440b0c..4db254d916 100644 --- a/compiler/liftdestructors.nim +++ b/compiler/liftdestructors.nim @@ -1179,6 +1179,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)