vala r2392 - in trunk: . gobject
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r2392 - in trunk: . gobject
- Date: Mon, 19 Jan 2009 08:06:39 +0000 (UTC)
Author: juergbi
Date: Mon Jan 19 08:06:38 2009
New Revision: 2392
URL: http://svn.gnome.org/viewvc/vala?rev=2392&view=rev
Log:
2009-01-19 JÃrg Billeter <j bitron ch>
* gobject/valaccodemethodmodule.vala:
Fix assigning to properties in lambda expressions in creation
methods, patch by Yu Feng, fixes bug 568267
Modified:
trunk/ChangeLog
trunk/gobject/valaccodemethodmodule.vala
Modified: trunk/gobject/valaccodemethodmodule.vala
==============================================================================
--- trunk/gobject/valaccodemethodmodule.vala (original)
+++ trunk/gobject/valaccodemethodmodule.vala Mon Jan 19 08:06:38 2009
@@ -61,6 +61,7 @@
Method old_method = current_method;
DataType old_return_type = current_return_type;
bool old_method_inner_error = current_method_inner_error;
+ bool old_in_creation_method = in_creation_method;
int old_next_temp_var_id = next_temp_var_id;
var old_variable_name_map = variable_name_map;
var old_try = current_try;
@@ -96,6 +97,8 @@
if (cl != null) {
current_return_type = new ObjectType (cl);
}
+ } else {
+ in_creation_method = false;
}
var creturn_type = current_return_type;
@@ -153,7 +156,7 @@
m.body.ccodenode = cblock;
}
- in_creation_method = false;
+ in_creation_method = old_in_creation_method;
}
bool inner_error = current_method_inner_error;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]