]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
method: Use prototype-string for return-type mismatch
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 9 Sep 2017 16:47:20 +0000 (18:47 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 9 Sep 2017 16:55:31 +0000 (18:55 +0200)
Include owndership transfer classifier to fix deficiency of
faa7dc16046a4a002ad23c90cf4ca1f9007adaa2

vala/valamethod.vala

index c37cfe7f125eb76d70481cfbcce3c4d864994bb9..3544b67e9d37b6d0739b57ede03911d7498e07c8 100644 (file)
@@ -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;
                }