summaryrefslogtreecommitdiff
path: root/vala/valacreationmethod.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2009-09-03 11:18:36 +0200
committerJürg Billeter <j@bitron.ch>2009-09-03 11:22:42 +0200
commit2f5d77b8b07f4f3964cab5ac698c8dd7df942756 (patch)
tree521704fe33e2ca07fc6433ef9302acc08e4b45cf /vala/valacreationmethod.vala
parentcc0b348118ec964a8a7d688934d51e32d4de8d60 (diff)
downloadvala-2f5d77b8b07f4f3964cab5ac698c8dd7df942756.tar.gz
Do not chain up creation methods when using construct block
Diffstat (limited to 'vala/valacreationmethod.vala')
-rw-r--r--vala/valacreationmethod.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/vala/valacreationmethod.vala b/vala/valacreationmethod.vala
index 06f66109d..35dedf27e 100644
--- a/vala/valacreationmethod.vala
+++ b/vala/valacreationmethod.vala
@@ -178,8 +178,8 @@ public class Vala.CreationMethod : Method {
// no chain up necessary for direct GObject subclasses
} else if (analyzer.context.profile == Profile.GOBJECT
&& cl.is_subtype_of (analyzer.object_type)
- && n_construction_params > 0) {
- // no chain up when using GObject construct properties
+ && (n_construction_params > 0 || cl.constructor != null)) {
+ // no chain up when using GObject construct properties or constructor
} else if (cl.base_class.default_construction_method == null
|| cl.base_class.default_construction_method.access == SymbolAccessibility.PRIVATE) {
Report.warning (source_reference, "unable to chain up to private base constructor");