diff options
Diffstat (limited to 'vala/valamethod.vala')
-rw-r--r-- | vala/valamethod.vala | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/vala/valamethod.vala b/vala/valamethod.vala index 66d9c3332..216a37e4b 100644 --- a/vala/valamethod.vala +++ b/vala/valamethod.vala @@ -355,7 +355,19 @@ public class Vala.Method : Member, Invokable { if (method_params_it.next ()) { return false; } - + + Iterator<TypeReference> method_error_domains_it = m2.get_error_domains ().iterator (); + foreach (TypeReference error_domain in error_domains) { + /* method may not have less error domains */ + if (!method_error_domains_it.next ()) { + return false; + } + + if (!method_error_domains_it.get ().equals (error_domain)) { + return false; + } + } + return true; } |