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

View File

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