vala r1624 - in trunk: . gobject
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1624 - in trunk: . gobject
- Date: Sat, 21 Jun 2008 15:06:53 +0000 (UTC)
Author: juergbi
Date: Sat Jun 21 15:06:53 2008
New Revision: 1624
URL: http://svn.gnome.org/viewvc/vala?rev=1624&view=rev
Log:
2008-06-21 JÃrg Billeter <j bitron ch>
* gobject/valaccodegenerator.vala:
Fix using static methods as delegates, fixes bug 539277
Modified:
trunk/ChangeLog
trunk/gobject/valaccodegenerator.vala
Modified: trunk/gobject/valaccodegenerator.vala
==============================================================================
--- trunk/gobject/valaccodegenerator.vala (original)
+++ trunk/gobject/valaccodegenerator.vala Sat Jun 21 15:06:53 2008
@@ -2840,8 +2840,9 @@
return target_expr;
}
} else if (delegate_expr.symbol_reference is Method) {
+ var m = (Method) delegate_expr.symbol_reference;
var ma = (MemberAccess) delegate_expr;
- if (ma.inner == null) {
+ if (m.binding == MemberBinding.STATIC) {
return new CCodeConstant ("NULL");
} else {
return (CCodeExpression) ma.inner.ccodenode;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]