]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Use clearer error message for automatic properties in interfaces af25bc337936945cfbbe7857a1b02cb3e0bcfa24
authorVivek Raj <vivekrajr@live.com>
Sat, 1 Dec 2018 16:10:57 +0000 (17:10 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 1 Dec 2018 16:42:16 +0000 (17:42 +0100)
Fixes https://gitlab.gnome.org/GNOME/vala/issues/656

vala/valainterface.vala

index 1fda7951264f8b231a8cb43373ccbe8bea74cb29..f6c503641797475d38d9ef706550b7001d5d2b85 100644 (file)
@@ -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;