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



commit c8c6aa7dafe9d09aee19bdba8e5199369f1747f0
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 7aef67416..03653fee9 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);


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