From 652e01344d6adcb9d947ec75402561caa7efcb46 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Sat, 26 Aug 2017 17:45:10 +0200 Subject: Improve error while method is incompatible with delegate Add virtual DataType.to_prototype_string() and use a common implementation in CallableType for its descendents. --- vala/valaassignment.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vala/valaassignment.vala') diff --git a/vala/valaassignment.vala b/vala/valaassignment.vala index 64b2395a3..761a02e1c 100644 --- a/vala/valaassignment.vala +++ b/vala/valaassignment.vala @@ -298,7 +298,7 @@ public class Vala.Assignment : Expression { var delegate_type = (DelegateType) right.target_type; error = true; - Report.error (right.source_reference, "method `%s' is incompatible with signal `%s', expected `%s'".printf (right.value_type.to_string (), right.target_type.to_string (), delegate_type.delegate_symbol.get_prototype_string (m.name))); + Report.error (right.source_reference, "method `%s' is incompatible with signal `%s', expected `%s'".printf (right.value_type.to_string (), right.target_type.to_string (), delegate_type.to_prototype_string (m.name))); return false; } else if (right_ma != null && right_ma.prototype_access) { error = true; -- cgit v1.2.1