From: Rico Tzschichholz Date: Sat, 9 Sep 2017 16:47:20 +0000 (+0200) Subject: method: Use prototype-string for return-type mismatch X-Git-Tag: 0.38.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93f16c468161114e3cbeb2dedd6911f3f014ad74;p=thirdparty%2Fvala.git method: Use prototype-string for return-type mismatch Include owndership transfer classifier to fix deficiency of faa7dc16046a4a002ad23c90cf4ca1f9007adaa2 --- diff --git a/vala/valamethod.vala b/vala/valamethod.vala index c37cfe7f1..3544b67e9 100644 --- a/vala/valamethod.vala +++ b/vala/valamethod.vala @@ -347,7 +347,7 @@ public class Vala.Method : Subroutine, Callable { var actual_base_type = base_method.return_type.get_actual_type (object_type, method_type_args, this); if (!return_type.equals (actual_base_type)) { - invalid_match = "Base method expected return type `%s', but `%s' was provided".printf (actual_base_type.to_qualified_string (), return_type.to_qualified_string ()); + invalid_match = "Base method expected return type `%s', but `%s' was provided".printf (actual_base_type.to_prototype_string (), return_type.to_prototype_string ()); return false; }