new destroyer pass works with procs too

This commit is contained in:
Andreas Rumpf 2017-10-13 07:00:52 +02:00
commit 5dca695bcf
4 changed files with 11 additions and 9 deletions

View file

@ -290,4 +290,7 @@ proc injectDestructorCalls*(owner: PSym; n: PNode): PNode =
else:
result.add body
#echo "transformed into: ", result
when false:
echo "------------------------------------"
echo owner.name.s, " transformed from: ", n
echo result