]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Don't bail early on property with not supported default value 7bbed02208029912c26f709b158245dd0703a5e7
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 17 Aug 2018 13:12:45 +0000 (15:12 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 17 Aug 2018 13:18:53 +0000 (15:18 +0200)
This avoids independent consequential errors.

vala/valaproperty.vala

index c873f29d39621ce361ed4af1f2f3994eda1c881a..cd1bcaff54692fd041759f090779cae2a2abbe86 100644 (file)
@@ -480,9 +480,7 @@ public class Vala.Property : Symbol, Lockable {
                }
 
                if (initializer != null && field == null && !is_abstract) {
-                       error = true;
                        Report.error (source_reference, "Property `%s' with custom `get' accessor and/or `set' mutator cannot have `default' value".printf (get_full_name ()));
-                       return false;
                }
 
                if (initializer != null) {