vala r1033 - in trunk: . vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1033 - in trunk: . vala
- Date: Sat, 23 Feb 2008 12:50:55 +0000 (GMT)
Author: juergbi
Date: Sat Feb 23 12:50:55 2008
New Revision: 1033
URL: http://svn.gnome.org/viewvc/vala?rev=1033&view=rev
Log:
2008-02-23 Juerg Billeter <j bitron ch>
* vala/valamethodtype.vala: check whether delegate matches method,
fixes bug 515617
Modified:
trunk/ChangeLog
trunk/vala/valamethodtype.vala
Modified: trunk/vala/valamethodtype.vala
==============================================================================
--- trunk/vala/valamethodtype.vala (original)
+++ trunk/vala/valamethodtype.vala Sat Feb 23 12:50:55 2008
@@ -47,4 +47,18 @@
public override DataType! copy () {
return new MethodType (method_symbol);
}
+
+ public override bool compatible (DataType! target_type, bool enable_non_null = true) {
+ var dt = target_type as DelegateType;
+ if (dt == null) {
+ // method types incompatible to anything but delegates
+ return false;
+ }
+
+ return dt.delegate_symbol.matches_method (method_symbol);
+ }
+
+ public override string! to_string () {
+ return method_symbol.get_full_name ();
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]