workaround the fact that top level statements currently don't produce destructor calls

This commit is contained in:
Araq 2018-08-21 21:33:19 +02:00
commit 9047c3f582

View file

@ -57,3 +57,6 @@ iterator items(p: Pony): int =
for x in getPony(): for x in getPony():
echo x echo x
# XXX this needs to be enabled once top level statements
# produce destructor calls again.
echo "Pony is dying!"