summaryrefslogtreecommitdiff
path: root/vala/valacreationmethod.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2010-08-21 18:49:38 +0200
committerJürg Billeter <j@bitron.ch>2010-08-21 18:49:38 +0200
commit559bbfb765dfdc2472b6ef2d2179c348fa09f828 (patch)
tree123bfb6a5217881fc6ff5b66664bdbc9b3a24b1b /vala/valacreationmethod.vala
parent20209bb268fb091fa82b75d931887b54f2232763 (diff)
downloadvala-559bbfb765dfdc2472b6ef2d2179c348fa09f828.tar.gz
Unable to chain up to base constructor is fatal
Diffstat (limited to 'vala/valacreationmethod.vala')
-rw-r--r--vala/valacreationmethod.vala12
1 files changed, 2 insertions, 10 deletions
diff --git a/vala/valacreationmethod.vala b/vala/valacreationmethod.vala
index 5dbd6f0e5..1243be218 100644
--- a/vala/valacreationmethod.vala
+++ b/vala/valacreationmethod.vala
@@ -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;