summaryrefslogtreecommitdiff
path: root/vala/valapropertyaccessor.vala
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2011-08-07 12:44:41 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2018-10-23 18:45:45 +0200
commit6395a2efe8f166fe8b2595fc2ba08dc4bcc69216 (patch)
tree330e9fd04c476190b76ccc8710ca1d9dd8573fa8 /vala/valapropertyaccessor.vala
parent6c44fc72635e0a55f57bb9db526c4d83ddd551df (diff)
downloadvala-6395a2efe8f166fe8b2595fc2ba08dc4bcc69216.tar.gz
Collect error_types on demand to allow transformations
Diffstat (limited to 'vala/valapropertyaccessor.vala')
-rw-r--r--vala/valapropertyaccessor.vala4
1 files changed, 3 insertions, 1 deletions
diff --git a/vala/valapropertyaccessor.vala b/vala/valapropertyaccessor.vala
index 46952bb19..e348c2510 100644
--- a/vala/valapropertyaccessor.vala
+++ b/vala/valapropertyaccessor.vala
@@ -197,7 +197,9 @@ public class Vala.PropertyAccessor : Subroutine {
body.check (context);
- foreach (DataType body_error_type in body.get_error_types ()) {
+ var error_types = new ArrayList<DataType> ();
+ body.get_error_types (error_types);
+ foreach (DataType body_error_type in error_types) {
if (!((ErrorType) body_error_type).dynamic_error) {
Report.warning (body_error_type.source_reference, "unhandled error `%s'".printf (body_error_type.to_string()));
}