summaryrefslogtreecommitdiff
path: root/vala/valapropertyaccessor.vala
diff options
context:
space:
mode:
Diffstat (limited to 'vala/valapropertyaccessor.vala')
-rw-r--r--vala/valapropertyaccessor.vala11
1 files changed, 8 insertions, 3 deletions
diff --git a/vala/valapropertyaccessor.vala b/vala/valapropertyaccessor.vala
index 3c826737b..7603a0492 100644
--- a/vala/valapropertyaccessor.vala
+++ b/vala/valapropertyaccessor.vala
@@ -206,9 +206,14 @@ public class Vala.PropertyAccessor : Subroutine {
Report.error (source_reference, "construct properties require `GLib.Object'");
return false;
} else if (construction && !context.analyzer.is_gobject_property (prop)) {
- error = true;
- Report.error (source_reference, "construct properties not supported for specified property type");
- return false;
+ //TODO Report an error for external property too
+ if (external_package) {
+ Report.warning (source_reference, "construct properties not supported for specified property type");
+ } else {
+ error = true;
+ Report.error (source_reference, "construct properties not supported for specified property type");
+ return false;
+ }
}
if (body != null && prop.is_abstract) {