]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Consider GLib.Object?[] compatible to GLib.Object[]
authorJürg Billeter <j@bitron.ch>
Thu, 26 Jan 2012 20:49:15 +0000 (21:49 +0100)
committerJürg Billeter <j@bitron.ch>
Thu, 26 Jan 2012 20:52:28 +0000 (21:52 +0100)
Fixes bug 667600.

vala/valaarraytype.vala

index d69a6238ddbad510ae75babaa5e7564f7e75876c..ecd8a0e5c02bfddbe2651d5c8492ad9eaacf99af 100644 (file)
@@ -188,7 +188,7 @@ public class Vala.ArrayType : ReferenceType {
                        return false;
                }
 
-               if (element_type.nullable != target_array_type.element_type.nullable) {
+               if (element_type is ValueType && element_type.nullable != target_array_type.element_type.nullable) {
                        return false;
                }