[vala] dova: Support calling equals on generic type parameters



commit 700eab7ce38d51ddbb41d2267a060f3bbc46fc8a
Author: Jürg Billeter <j bitron ch>
Date:   Wed Jul 7 10:46:54 2010 +0200

    dova: Support calling equals on generic type parameters

 vala/valagenerictype.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagenerictype.vala b/vala/valagenerictype.vala
index 18035e4..3e881e5 100644
--- a/vala/valagenerictype.vala
+++ b/vala/valagenerictype.vala
@@ -64,7 +64,9 @@ public class Vala.GenericType : DataType {
 
 	public override Symbol? get_member (string member_name) {
 		if (CodeContext.get ().profile == Profile.DOVA) {
-			if (member_name == "hash") {
+			if (member_name == "equals") {
+				return CodeContext.get ().root.scope.lookup ("Dova").scope.lookup ("Object").scope.lookup ("equals");
+			} else if (member_name == "hash") {
 				return CodeContext.get ().root.scope.lookup ("Dova").scope.lookup ("Object").scope.lookup ("hash");
 			}
 		}



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