summaryrefslogtreecommitdiff
path: root/vala/valacreationmethod.vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2019-11-27 11:42:55 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2019-11-27 13:30:25 +0100
commit787a1e363e1f41e4c745cbc0ed4758c1c34fc2e8 (patch)
tree0be3b82820634ffb4b84cddd603fa98d39781bed /vala/valacreationmethod.vala
parent34409b10f9ed1dd9cbdc110f8297a8efc34613f3 (diff)
downloadvala-787a1e363e1f41e4c745cbc0ed4758c1c34fc2e8.tar.gz
vala: Don't ignore inner errors in Block and acknowledge them further
This avoids useless subsequent errors and possible criticals while operating on broken AST.
Diffstat (limited to 'vala/valacreationmethod.vala')
-rw-r--r--vala/valacreationmethod.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/vala/valacreationmethod.vala b/vala/valacreationmethod.vala
index 5969fd398..3c0b22992 100644
--- a/vala/valacreationmethod.vala
+++ b/vala/valacreationmethod.vala
@@ -179,7 +179,7 @@ public class Vala.CreationMethod : Method {
}
// check that all errors that can be thrown in the method body are declared
- if (body != null) {
+ if (body != null && !body.error) {
var body_errors = new ArrayList<DataType> ();
body.get_error_types (body_errors);
foreach (DataType body_error_type in body_errors) {