[vala/0.46] vala: Don't report further errors if MemberInitializer.check() failed
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.46] vala: Don't report further errors if MemberInitializer.check() failed
- Date: Wed, 5 Feb 2020 10:02:46 +0000 (UTC)
commit b535926cd530707779697338bad93d9a2e4865ad
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Nov 27 13:38:47 2019 +0100
vala: Don't report further errors if MemberInitializer.check() failed
vala/valasemanticanalyzer.vala | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/vala/valasemanticanalyzer.vala b/vala/valasemanticanalyzer.vala
index 4a8e777a4..0d090f139 100644
--- a/vala/valasemanticanalyzer.vala
+++ b/vala/valasemanticanalyzer.vala
@@ -1036,7 +1036,9 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
init.initializer.formal_target_type = member_type;
init.initializer.target_type = init.initializer.formal_target_type.get_actual_type (type,
null, init);
- init.check (context);
+ if (!init.check (context)) {
+ return;
+ }
if (init.initializer.value_type == null || !init.initializer.value_type.compatible
(init.initializer.target_type)) {
init.error = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]