[vala] dova: Fix access to string.data from outside dova-core



commit 7b112edf306bfb78ac24634549a6c4e1b7c12823
Author: Jürg Billeter <j bitron ch>
Date:   Sat Jul 17 15:07:02 2010 +0200

    dova: Fix access to string.data from outside dova-core

 vala/valaclass.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valaclass.vala b/vala/valaclass.vala
index b09c09b..0574762 100644
--- a/vala/valaclass.vala
+++ b/vala/valaclass.vala
@@ -288,7 +288,7 @@ public class Vala.Class : ObjectTypeSymbol {
 		if (CodeContext.get ().profile == Profile.DOVA &&
 		    f.binding == MemberBinding.INSTANCE &&
 		    (f.access == SymbolAccessibility.PUBLIC || f.access == SymbolAccessibility.PROTECTED) &&
-		    !CodeContext.get ().nostdpkg) {
+		    name != "string" && name != "Object" /* temporary workaround */) {
 			// public/protected instance fields not supported, convert to automatic property
 
 			var prop = new Property (f.name, f.field_type.copy (), null, null, f.source_reference, comment);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]