diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2020-05-18 12:26:14 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2020-05-18 13:21:58 +0200 |
commit | 00bef7c5ef7d6915b86fe5d2db0118a546a5e9c1 (patch) | |
tree | 8f91cc0ab014b4598ee54efabb9d9e450c16944c /vala/valamethod.vala | |
parent | 33e4ad0a98032ef77adcac218290a88c583e6f4a (diff) | |
download | vala-00bef7c5ef7d6915b86fe5d2db0118a546a5e9c1.tar.gz |
vala: Explicit "new" method may be incompatible with a posssible base method
Diffstat (limited to 'vala/valamethod.vala')
-rw-r--r-- | vala/valamethod.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vala/valamethod.vala b/vala/valamethod.vala index e617f9d61..ef8a48dae 100644 --- a/vala/valamethod.vala +++ b/vala/valamethod.vala @@ -687,7 +687,7 @@ public class Vala.Method : Subroutine, Callable { _base_interface_method = base_match; copy_attribute_double (base_match, "CCode", "instance_pos"); return; - } else if (invalid_base_match != null) { + } else if (!hides && invalid_base_match != null) { error = true; var base_method_type = new MethodType (invalid_base_match); Report.error (source_reference, "overriding method `%s' is incompatible with base method `%s': %s.".printf (get_full_name (), base_method_type.to_prototype_string (), invalid_error)); |