[vala/0.40] 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.40] vala: Don't report further errors if MemberInitializer.check() failed
- Date: Wed, 5 Feb 2020 10:02:25 +0000 (UTC)
commit 52681c8fe927dc609826f090b971856b49fc7137
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 8aeab5241..a5b203f48 100644
--- a/vala/valasemanticanalyzer.vala
+++ b/vala/valasemanticanalyzer.vala
@@ -964,7 +964,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]