From: Jürg Billeter Date: Sat, 5 Jun 2010 07:49:55 +0000 (+0200) Subject: dova: Support calling hash on generic type parameters X-Git-Tag: 0.9.1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f325fbe414d364a8d3a8fdbfc315d0ee4d948743;p=thirdparty%2Fvala.git dova: Support calling hash on generic type parameters --- diff --git a/vala/valagenerictype.vala b/vala/valagenerictype.vala index f908d0686..18035e4a6 100644 --- a/vala/valagenerictype.vala +++ b/vala/valagenerictype.vala @@ -61,4 +61,13 @@ public class Vala.GenericType : DataType { public override string to_qualified_string (Scope? scope = null) { return type_parameter.name; } + + public override Symbol? get_member (string member_name) { + if (CodeContext.get ().profile == Profile.DOVA) { + if (member_name == "hash") { + return CodeContext.get ().root.scope.lookup ("Dova").scope.lookup ("Object").scope.lookup ("hash"); + } + } + return null; + } }