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

@ -3,7 +3,7 @@ discard """
output: '''hi
ho
ha
7 1'''
7 7'''
"""
import allocators
@ -75,7 +75,7 @@ iterator interpolatedFragments*(s: string): tuple[kind: InterpolatedKind,
break
i = j
when true:
proc other =
let input = "$test{} $this is ${an{ example}} "
let expected = @[(ikVar, "test"), (ikStr, "{} "), (ikVar, "this"),
(ikStr, " is "), (ikExpr, "an{ example}"), (ikStr, " ")]
@ -84,6 +84,7 @@ when true:
doAssert s == expected[i]
inc i
other()
#echo s
let (a, d) = allocCounters()