introduce --newruntime switch for the upcoming destructors and move semantics
This commit is contained in:
parent
a2e4ab2e4e
commit
63530be0b8
6 changed files with 19 additions and 11 deletions
|
|
@ -1383,7 +1383,7 @@ proc semAsgn(c: PContext, n: PNode; mode=asgnNormal): PNode =
|
|||
typeMismatch(n.info, lhs.typ, rhs.typ)
|
||||
|
||||
n.sons[1] = fitNode(c, le, rhs, n.info)
|
||||
when not newDestructors:
|
||||
if not newDestructors:
|
||||
if tfHasAsgn in lhs.typ.flags and not lhsIsResult and
|
||||
mode != noOverloadedAsgn:
|
||||
return overloadedAsgn(c, lhs, n.sons[1])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue