fixes #11014
This commit is contained in:
parent
ce024a73bf
commit
d8a8c8806f
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue