[vala] Fix automatic property access in structs
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Fix automatic property access in structs
- Date: Mon, 22 Mar 2010 22:32:35 +0000 (UTC)
commit be4ce51540e8827bb7a60ad40abe20cf4c389ab9
Author: Jürg Billeter <j bitron ch>
Date: Mon Mar 22 23:32:01 2010 +0100
Fix automatic property access in structs
Fixes bug 609142.
codegen/valaccodememberaccessmodule.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodememberaccessmodule.vala b/codegen/valaccodememberaccessmodule.vala
index b3994bc..386d4d2 100644
--- a/codegen/valaccodememberaccessmodule.vala
+++ b/codegen/valaccodememberaccessmodule.vala
@@ -1,6 +1,6 @@
/* valaccodememberaccessmodule.vala
*
- * Copyright (C) 2006-2009 Jürg Billeter
+ * Copyright (C) 2006-2010 Jürg Billeter
* Copyright (C) 2006-2008 Raffaele Sandrini
*
* This library is free software; you can redistribute it and/or
@@ -232,6 +232,7 @@ internal class Vala.CCodeMemberAccessModule : CCodeControlFlowModule {
if (prop.binding == MemberBinding.INSTANCE &&
prop.get_accessor.automatic_body &&
current_type_symbol == prop.parent_symbol &&
+ current_type_symbol is Class &&
prop.base_property == null &&
prop.base_interface_property == null &&
!(prop.property_type is ArrayType || prop.property_type is DelegateType)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]