diff options
Diffstat (limited to 'vala/valaconstructor.vala')
-rw-r--r-- | vala/valaconstructor.vala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vala/valaconstructor.vala b/vala/valaconstructor.vala index d16fc13a4..d16dbcae6 100644 --- a/vala/valaconstructor.vala +++ b/vala/valaconstructor.vala @@ -77,11 +77,12 @@ public class Vala.Constructor : Subroutine { body.check (context); } - foreach (DataType body_error_type in body.get_error_types ()) { + body.get_error_types ().foreach ((body_error_type) => { if (!((ErrorType) body_error_type).dynamic_error) { Report.warning (body_error_type.source_reference, "unhandled error `%s'".printf (body_error_type.to_string())); } - } + return true; + }); context.analyzer.current_symbol = context.analyzer.current_symbol.parent_symbol; |