[vala] Unable to chain up to base constructor is fatal
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Unable to chain up to base constructor is fatal
- Date: Sat, 21 Aug 2010 17:14:10 +0000 (UTC)
commit 559bbfb765dfdc2472b6ef2d2179c348fa09f828
Author: Jürg Billeter <j bitron ch>
Date: Sat Aug 21 18:49:38 2010 +0200
Unable to chain up to base constructor is fatal
vala/valacreationmethod.vala | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/vala/valacreationmethod.vala b/vala/valacreationmethod.vala
index 5dbd6f0..1243be2 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]