summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2017-09-09 18:47:20 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2017-09-09 18:55:31 +0200
commit93f16c468161114e3cbeb2dedd6911f3f014ad74 (patch)
tree2e87c194ae1fb5056086f29490f779093782e10a
parenteb1515daccb6100a73dfc3bbdfc5a053c0ac046b (diff)
downloadvala-93f16c468161114e3cbeb2dedd6911f3f014ad74.tar.gz
method: Use prototype-string for return-type mismatch
Include owndership transfer classifier to fix deficiency of faa7dc16046a4a002ad23c90cf4ca1f9007adaa2
-rw-r--r--vala/valamethod.vala2
1 files changed, 1 insertions, 1 deletions
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;
}