diff options
Diffstat (limited to 'tests/arc/topt_cursor.nim')
-rw-r--r-- | tests/arc/topt_cursor.nim | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/tests/arc/topt_cursor.nim b/tests/arc/topt_cursor.nim index a8020e72b..794132921 100644 --- a/tests/arc/topt_cursor.nim +++ b/tests/arc/topt_cursor.nim @@ -4,21 +4,18 @@ discard """ nimout: '''--expandArc: main var + x_cursor :tmpD - :tmpD_1 - :tmpD_2 try: - var x_cursor = ("hi", 5) - x_cursor = if cond: - :tmpD = ("different", 54) - :tmpD else: - :tmpD_1 = ("string here", 80) - :tmpD_1 + x_cursor = ("hi", 5) + if cond: + x_cursor = ("different", 54) else: + x_cursor = ("string here", 80) echo [ - :tmpD_2 = `$`(x_cursor) - :tmpD_2] + :tmpD = `$$`(x_cursor) + :tmpD] finally: - `=destroy`(:tmpD_2) + `=destroy`(:tmpD) -- end of expandArc ------------------------ --expandArc: sio @@ -28,7 +25,7 @@ block :tmp: try: var res try: - res = TaintedString(newStringOfCap(80)) + res = newStringOfCap(80) block :tmp_1: while readLine(f, res): x_cursor = res |