[vala/0.40] vala: Report dedicated error message for params-array parameter mismatch



commit fd20d76ba049064990525272c9a7e4b1dc0f6b00
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Fri Sep 13 13:54:53 2019 +0200

    vala: Report dedicated error message for params-array parameter mismatch

 vala/valamethod.vala | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/vala/valamethod.vala b/vala/valamethod.vala
index bbdcbaffd..090a16401 100644
--- a/vala/valamethod.vala
+++ b/vala/valamethod.vala
@@ -365,6 +365,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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]