This commit is contained in:
Araq 2019-04-17 00:15:40 +02:00
commit d8a8c8806f

View file

@ -650,9 +650,9 @@ proc createTypeBoundOps(c: PContext; orig: PType; info: TLineInfo) =
inst(typ.sink, typ) inst(typ.sink, typ)
if overwrite: if overwrite:
orig.destructor = canon.destructor orig.destructor = typ.destructor
orig.assignment = canon.assignment orig.assignment = typ.assignment
orig.sink = canon.sink orig.sink = typ.sink
if not isTrival(orig.destructor): if not isTrival(orig.destructor):
#or not isTrival(orig.assignment) or #or not isTrival(orig.assignment) or