]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Don't use arrays in generics
authorJCWasmx86 <JCWasmx86@t-online.de>
Sat, 4 Jun 2022 17:17:17 +0000 (19:17 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 29 Apr 2023 19:00:17 +0000 (21:00 +0200)
dbusgen/valadbusvariantmodule.vala

index e9ee82aaa1c096b003b2540f9ad33423c3a53a41..d8503ae7180f88255731e9cd2b35b121ab16cef4 100644 (file)
@@ -177,7 +177,7 @@ public class Vala.DBusVariantModule {
                                var res = dictionary_type.copy ();
                                var key = get_variant_type (element.key ());
                                var value = get_variant_type (element.value ());
-                               if (key != null && value != null) {
+                               if (key != null && value != null && !(key is ArrayType) && !(value is ArrayType)) {
                                        res.add_type_argument (key);
                                        res.add_type_argument (value);
                                        return res;