[vala/staging] vala: Don't bail early on property with not supported default value
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] vala: Don't bail early on property with not supported default value
- Date: Fri, 17 Aug 2018 13:32:06 +0000 (UTC)
commit 7bbed02208029912c26f709b158245dd0703a5e7
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Fri Aug 17 15:12:45 2018 +0200
vala: Don't bail early on property with not supported default value
This avoids independent consequential errors.
vala/valaproperty.vala | 2 --
1 file changed, 2 deletions(-)
---
diff --git a/vala/valaproperty.vala b/vala/valaproperty.vala
index c873f29d3..cd1bcaff5 100644
--- a/vala/valaproperty.vala
+++ b/vala/valaproperty.vala
@@ -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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]