]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix detection of unhandled errors in blocks
authorJürg Billeter <j@bitron.ch>
Wed, 30 Sep 2009 17:24:06 +0000 (19:24 +0200)
committerJürg Billeter <j@bitron.ch>
Wed, 30 Sep 2009 17:24:46 +0000 (19:24 +0200)
vala/valablock.vala

index e9dfe2dbc0a766f04b37c0812e13141064096ffb..c473aca3949f2734ad6e0cd144681c532a144ab9 100644 (file)
@@ -1,6 +1,6 @@
 /* valablock.vala
  *
- * Copyright (C) 2006-2008  Jürg Billeter
+ * Copyright (C) 2006-2009  Jürg Billeter
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -144,7 +144,8 @@ public class Vala.Block : Symbol, Statement {
                        local.active = false;
                }
 
-               foreach (Statement stmt in statement_list) {
+               // use get_statements () instead of statement_list to not miss errors within StatementList objects
+               foreach (Statement stmt in get_statements ()) {
                        add_error_types (stmt.get_error_types ());
                }