]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
dova: Fix access to string.data from outside dova-core
authorJürg Billeter <j@bitron.ch>
Sat, 17 Jul 2010 13:07:02 +0000 (15:07 +0200)
committerJürg Billeter <j@bitron.ch>
Sat, 17 Jul 2010 13:07:59 +0000 (15:07 +0200)
vala/valaclass.vala

index b09c09bdbf3e095fe30c37ac72874ddc5e69f434..05747628cb92604e5068802194991bd4b6da11f4 100644 (file)
@@ -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);