]> ocean-lang.org Git - ocean/commit
oceani: fix merging of conditionally-scoped variables.
authorNeilBrown <neil@brown.name>
Sat, 18 May 2019 13:51:24 +0000 (23:51 +1000)
committerNeilBrown <neil@brown.name>
Sat, 18 May 2019 13:56:43 +0000 (23:56 +1000)
commit1ca9cccf579ea6d70d09c837e317aaed64a9f988
tree7569355c85c5f707ed957c1fbe5062d5021cb0bd
parent19a1139823311524d21280cd8e3160892360d5c4
oceani: fix merging of conditionally-scoped variables.

The problem here was that the list seen in ->in_scope
includes more than just what is currently in-scope.
It also contains things that have been replaced by new instances
of the name.
These can be detected a they aren't the first variable listed
under their name any more.

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