]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Skip UsingDirective if error is set e5907252d4166adcc50969c1cc3aa6493760504e
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 20 Feb 2020 14:34:35 +0000 (15:34 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 20 Feb 2020 14:34:35 +0000 (15:34 +0100)
vala/valamemberaccess.vala

index 8b199b930a13380435a7c022e8840ecae80bffe4..a0dc84d62340703b0de82426b5fbf12ae1518c06 100644 (file)
@@ -307,6 +307,10 @@ public class Vala.MemberAccess : Expression {
 
                        if (symbol_reference == null && source_reference != null) {
                                foreach (UsingDirective ns in source_reference.using_directives) {
+                                       if (ns.error) {
+                                               // ignore previous error
+                                               continue;
+                                       }
                                        var local_sym = ns.namespace_symbol.scope.lookup (member_name);
                                        if (local_sym != null) {
                                                if (symbol_reference != null && symbol_reference != local_sym) {