diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-10-25 09:13:51 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-10-25 09:15:30 +0200 |
commit | 01affa4019bab9c4cc2366cd2224148c1bfb3bea (patch) | |
tree | eb1715d9c17a0d8d05e6d744a35435d6a59a75ea /vala/valapropertyaccessor.vala | |
parent | 9c2566584ec7f50715a7490c7d4e112506045585 (diff) | |
download | vala-01affa4019bab9c4cc2366cd2224148c1bfb3bea.tar.gz |
Revert "Use ErrorType-based collection for CodeNode.get_error_types()"
Unfortunately, it is causing issues with the way the GIR/GIDL parser works.
This reverts commit 0751a9e3bf46fc830d3e7ca3d0cfd3ae48846e68.
Diffstat (limited to 'vala/valapropertyaccessor.vala')
-rw-r--r-- | vala/valapropertyaccessor.vala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vala/valapropertyaccessor.vala b/vala/valapropertyaccessor.vala index 46d8604a3..393284301 100644 --- a/vala/valapropertyaccessor.vala +++ b/vala/valapropertyaccessor.vala @@ -245,10 +245,10 @@ public class Vala.PropertyAccessor : Subroutine { } if (body != null && !body.error) { - var error_types = new ArrayList<ErrorType> (); + var error_types = new ArrayList<DataType> (); body.get_error_types (error_types); - foreach (var body_error_type in error_types) { - if (!body_error_type.dynamic_error) { + 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'", body_error_type.to_string ()); } } |