[vala] Consider GLib.Object?[] compatible to GLib.Object[]



commit 02d8b62ae2536e2f483437d6ccadfb33d6e83f57
Author: JÃrg Billeter <j bitron ch>
Date:   Thu Jan 26 21:49:15 2012 +0100

    Consider GLib.Object?[] compatible to GLib.Object[]
    
    Fixes bug 667600.

 vala/valaarraytype.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valaarraytype.vala b/vala/valaarraytype.vala
index d69a623..ecd8a0e 100644
--- a/vala/valaarraytype.vala
+++ b/vala/valaarraytype.vala
@@ -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;
 		}
 



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