diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-08-26 17:45:10 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-09-02 20:37:03 +0200 |
commit | 652e01344d6adcb9d947ec75402561caa7efcb46 (patch) | |
tree | d98b2821715faa85dca88e743828d9757fb5b7df /vala/valaassignment.vala | |
parent | 95a4c5568a9afd54ab1684468994fc75d76e43ba (diff) | |
download | vala-652e01344d6adcb9d947ec75402561caa7efcb46.tar.gz |
Improve error while method is incompatible with delegate
Add virtual DataType.to_prototype_string() and use a common implementation
in CallableType for its descendents.
Diffstat (limited to 'vala/valaassignment.vala')
-rw-r--r-- | vala/valaassignment.vala | 2 |
1 files changed, 1 insertions, 1 deletions
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; |