destructors: we are cooking now

This commit is contained in:
Araq 2019-04-06 17:32:33 +02:00
commit 6e6a9a721f
9 changed files with 73 additions and 43 deletions

View file

@ -772,6 +772,8 @@ proc transformCall(c: PTransf, n: PNode): PTransNode =
elif magic == mProcCall:
# but do not change to its dispatcher:
result = transformSons(c, n[1])
elif magic == mStrToStr:
result = transform(c, n[1])
else:
let s = transformSons(c, n).PNode
# bugfix: check after 'transformSons' if it's still a method call: