]> ocean-lang.org Git - ocean/commit - csrc/oceani.mdc
oceani: fix up the while/do scope
authorNeilBrown <neil@brown.name>
Sat, 6 Nov 2021 23:00:29 +0000 (10:00 +1100)
committerNeilBrown <neil@brown.name>
Mon, 8 Nov 2021 09:56:36 +0000 (20:56 +1100)
commit6a546ea265d0ee30152298463e9e7b7c2f53b3b0
treeee6ba3256285030110bc72351ed29d70ab4d1840
parent688a9e05b01cd47b1a583848ade627d3f29b52d1
oceani: fix up the while/do scope

The scope created for while/do does NOT extend into the case/else part.
This is because it is a repeating scope and needs to close and re-open.

We *could* include case/else in the final instance of that scope, but
I'm not at all sure that I want to.  Maybe later.

So close the scope properly and fix up the test code which depends on
the scope being extended.

Signed-off-by: NeilBrown <neil@brown.name>
csrc/oceani-tests.mdc
csrc/oceani.mdc