]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Allow inheritance from sealed class in bindings
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 17 Apr 2023 10:28:15 +0000 (12:28 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 17 Apr 2023 10:30:54 +0000 (12:30 +0200)
Cherry-picked from 46b5b957df1eca5379774348a13f0a6847cdf7da

See https://gitlab.gnome.org/GNOME/vala/issues/1036

vala/valaclass.vala

index 436a6b3cfe3f9d6c9b33ff9e84f38957c980477e..a87bb4240de12e591be8f48b9a28ed44e69a6d67 100644 (file)
@@ -592,7 +592,7 @@ public class Vala.Class : ObjectTypeSymbol {
                        add_constructor (c);
                }
 
-               if (base_class != null && base_class.is_sealed) {
+               if (!external_package && base_class != null && base_class.is_sealed) {
                        error = true;
                        Report.error (source_reference, "`%s' cannot inherit from sealed class `%s'", get_full_name (), base_class.get_full_name ());
                }