diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-09-13 13:54:53 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-09-24 13:49:56 +0200 |
commit | 435e2755a3b9028c9dcf85cf4d6ac489f7237fa5 (patch) | |
tree | b6fa3d3886a045d9c9307a82a3e79a0245ddc766 | |
parent | 4f21af865b75a92cddd2a017085111d2c7c616e1 (diff) | |
download | vala-435e2755a3b9028c9dcf85cf4d6ac489f7237fa5.tar.gz |
vala: Report dedicated error message for params-array parameter mismatch
-rw-r--r-- | vala/valamethod.vala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vala/valamethod.vala b/vala/valamethod.vala index 60a1a3543..3d7518f6a 100644 --- a/vala/valamethod.vala +++ b/vala/valamethod.vala @@ -384,6 +384,10 @@ public class Vala.Method : Subroutine, Callable { invalid_match = "ellipsis parameter mismatch"; return false; } + if (base_param.params_array != param.params_array) { + invalid_match = "params array parameter mismatch"; + return false; + } if (!base_param.ellipsis) { if (base_param.direction != param.direction) { invalid_match = "incompatible direction of parameter %d".printf (param_index); |