~ubuntu-branches/ubuntu/trusty/vala/trusty

« back to all changes in this revision

Viewing changes to vala/valadelegate.vala

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2011-01-06 10:31:36 UTC
  • mfrom: (1.5.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20110106103136-e08fwvpxpqhz3rv0
Tags: 0.11.3-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
208
208
                if (method_params_it.next ()) {
209
209
                        return false;
210
210
                }
211
 
                
 
211
 
 
212
                // method may throw less but not more errors than the delegate
 
213
                foreach (DataType method_error_type in m.get_error_types ()) {
 
214
                        bool match = false;
 
215
                        foreach (DataType delegate_error_type in get_error_types ()) {
 
216
                                if (method_error_type.compatible (delegate_error_type)) {
 
217
                                        match = true;
 
218
                                        break;
 
219
                                }
 
220
                        }
 
221
 
 
222
                        if (!match) {
 
223
                                return false;
 
224
                        }
 
225
                }
 
226
 
212
227
                return true;
213
228
        }
214
229