]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
dova: Fix public fields in Dova.Object
authorJürg Billeter <j@bitron.ch>
Fri, 16 Jul 2010 14:49:59 +0000 (16:49 +0200)
committerJürg Billeter <j@bitron.ch>
Fri, 16 Jul 2010 22:00:04 +0000 (00:00 +0200)
vala/valaclass.vala

index b22b0093b814e6608fe06528571705bac1c2cbcf..b09c09bdbf3e095fe30c37ac72874ddc5e69f434 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) &&
-                   name != "string" /* temporary workaround */) {
+                   !CodeContext.get ().nostdpkg) {
                        // 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);