We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47d9ebd commit 68bb2b6Copy full SHA for 68bb2b6
source/sema.h
@@ -604,9 +604,16 @@ class sema
604
assert (sym.identifier);
605
606
// If we find a use of this identifier
607
- if (*sym.identifier == *id) {
608
- definite_last_uses.emplace_back( sym.identifier, is_forward );
609
- found = true;
+ if (*sym.identifier == *id)
+ {
+ if (
610
+ !found
611
+ || symbols[i].depth > selections.back()+1
612
+ )
613
614
+ definite_last_uses.emplace_back( sym.identifier, is_forward );
615
+ found = true;
616
+ }
617
618
// Pop any of the last branches that we're outside of
619
while (symbols[i].depth <= selections.back()) {
0 commit comments