fixes #11671
This commit is contained in:
parent
465815e894
commit
3258c1e2a3
1 changed files with 1 additions and 1 deletions
|
|
@ -2047,7 +2047,7 @@ proc genDestroy(p: BProc; n: PNode) =
|
|||
else: discard "nothing to do"
|
||||
else:
|
||||
let t = n[1].typ.skipTypes(abstractVar)
|
||||
if t.destructor != nil and t.destructor.magic != mDestroy:
|
||||
if t.destructor != nil and t.destructor.ast[bodyPos].len != 0:
|
||||
internalError(p.config, n.info, "destructor turned out to be not trivial")
|
||||
discard "ignore calls to the default destructor"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue