]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: Handle unsupported aliases which could not be fully processed 45fd1ef619e36f7d01c70e27fb4de411717d84f3
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 12 Jul 2018 06:51:11 +0000 (08:51 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 12 Jul 2018 06:55:05 +0000 (08:55 +0200)
This avoids criticals for e.g. aliases of error-domains

vala/valagirparser.vala

index 31ae069c2c87e23e9cb4793bc50c98084ff0c1cb..203a1ec8a8926ba88c395c2c39d28eefdc85615d 100644 (file)
@@ -3715,6 +3715,10 @@ public class Vala.GirParser : CodeVisitor {
                        deleg.external = true;
 
                        alias.symbol = deleg;
+               } else if (type_sym != null) {
+                       Report.warning (alias.source_reference, "alias `%s' for `%s' is not supported".printf (alias.get_full_name (), type_sym.get_full_name ()));
+                       alias.symbol = type_sym;
+                       alias.merged = true;
                }
 
                // inherit atributes, like type_id