Check the error types of the base method as well, fixes bug 548283.
}
}
- if (m.get_error_types ().size > 0) {
+ if (m.get_error_types ().size > 0 || (m.base_method != null && m.base_method.get_error_types ().size > 0)) {
foreach (DataType error_type in m.get_error_types ()) {
generate_type_declaration (error_type, decl_space);
}
return false;
}
- /* this method may throw more but not less errors than the base method */
+ /* this method may throw less but not more errors than the base method */
foreach (DataType method_error_type in get_error_types ()) {
bool match = false;
foreach (DataType base_method_error_type in base_method.get_error_types ()) {