X-Git-Url: https://ocean-lang.org/code/?p=ocean;a=blobdiff_plain;f=csrc%2Foceani.mdc;h=215a9a709bca6b4ebe568a0b6a1e3ca2e5e252d5;hp=7e1f2ac788117dddae2f9e2529e3d34ec8389aac;hb=98e9ff743107bb2ec43acbd6b361cddddcb6f1c0;hpb=fdc93978981976920d369c57b80da002374090a5 diff --git a/csrc/oceani.mdc b/csrc/oceani.mdc index 7e1f2ac..215a9a7 100644 --- a/csrc/oceani.mdc +++ b/csrc/oceani.mdc @@ -1176,9 +1176,11 @@ all pending-scope variables become conditionally scoped. v->previous->scope == PendingScope) /* all previous branches used name */ v->scope = PendingScope; - else if (v->type == Tlabel) // UNTESTED + else if (v->type == Tlabel) /* Labels remain pending even when not used */ v->scope = PendingScope; // UNTESTED + else + v->scope = OutScope; if (ct == CloseElse) { /* All Pending variables with this name * are now Conditional */