summaryrefslogtreecommitdiff
path: root/vala/valapropertyaccessor.vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2019-06-17 08:05:54 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2019-06-17 08:08:32 +0200
commite186c470fecc5f2d38a9711682be8b9fac1fdeca (patch)
tree12a28af8b920b1d4e243d7ed2bc2687d9d816e38 /vala/valapropertyaccessor.vala
parent86002f129c6bf2dded1953ffbe97f92bd236b65f (diff)
downloadvala-e186c470fecc5f2d38a9711682be8b9fac1fdeca.tar.gz
vala: Only warn about imcompatible type of external construct property
This is to reduce the initial fallout. Fixes https://gitlab.gnome.org/GNOME/vala/issues/803
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) {