From: Vivek Raj Date: Sat, 1 Dec 2018 16:10:57 +0000 (+0100) Subject: vala: Use clearer error message for automatic properties in interfaces X-Git-Tag: 0.42.4~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fb5f0e3cd9244f3295103f8f07171c88c095935;p=thirdparty%2Fvala.git vala: Use clearer error message for automatic properties in interfaces Fixes https://gitlab.gnome.org/GNOME/vala/issues/656 --- diff --git a/vala/valainterface.vala b/vala/valainterface.vala index 1fda79512..f6c503641 100644 --- a/vala/valainterface.vala +++ b/vala/valainterface.vala @@ -92,7 +92,7 @@ public class Vala.Interface : ObjectTypeSymbol { */ public override void add_property (Property prop) { if (prop.field != null) { - Report.error (prop.source_reference, "automatic properties are not allowed in interfaces"); + Report.error (prop.source_reference, "interface properties should be `abstract' or have `get' accessor and/or `set' mutator"); prop.error = true; return;