* Fix #16437

* Fix

* Small cleanup
This commit is contained in:
Clyybber 2021-03-06 22:35:02 +01:00 • committed by GitHub
commit 38d82795da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 75 additions and 36 deletions

View file

@ -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