]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Unable to chain up to base constructor is fatal
authorJürg Billeter <j@bitron.ch>
Sat, 21 Aug 2010 16:49:38 +0000 (18:49 +0200)
committerJürg Billeter <j@bitron.ch>
Sat, 21 Aug 2010 16:49:38 +0000 (18:49 +0200)
vala/valacreationmethod.vala

index 5dbd6f0e5f9d7cd0d75a577e1ae2052417a9a14a..1243be2189fbb5205c3c0b1ebea9cef0248ad55d 100644 (file)
@@ -196,17 +196,9 @@ public class Vala.CreationMethod : Method {
                                        // chain up impossible
                                } else if (cl.base_class.default_construction_method == null
                                    || cl.base_class.default_construction_method.access == SymbolAccessibility.PRIVATE) {
-                                       if (analyzer.context.profile == Profile.GOBJECT) {
-                                               Report.warning (source_reference, "unable to chain up to private base constructor");
-                                       } else {
-                                               Report.error (source_reference, "unable to chain up to private base constructor");
-                                       }
+                                       Report.error (source_reference, "unable to chain up to private base constructor");
                                } else if (cl.base_class.default_construction_method.get_required_arguments () > 0) {
-                                       if (analyzer.context.profile == Profile.GOBJECT) {
-                                               Report.warning (source_reference, "unable to chain up to base constructor requiring arguments");
-                                       } else {
-                                               Report.error (source_reference, "unable to chain up to base constructor requiring arguments");
-                                       }
+                                       Report.error (source_reference, "unable to chain up to base constructor requiring arguments");
                                } else {
                                        var old_insert_block = analyzer.insert_block;
                                        analyzer.current_symbol = body;