]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix virtual struct properties
authorJürg Billeter <j@bitron.ch>
Mon, 14 Sep 2009 19:14:44 +0000 (21:14 +0200)
committerJürg Billeter <j@bitron.ch>
Mon, 14 Sep 2009 19:14:44 +0000 (21:14 +0200)
codegen/valaccodebasemodule.vala

index aa00179fb0883636732dda93af58c609deb04f59..4674539de4550d9f70e287149454ba57e1f34d2c 100644 (file)
@@ -1351,7 +1351,7 @@ internal class Vala.CCodeBaseModule : CCodeModule {
                }
 
                if (prop.is_abstract || prop.is_virtual) {
-                       if (acc.readable) {
+                       if (acc.readable && !returns_real_struct) {
                                function = new CCodeFunction (acc.get_cname (), current_return_type.get_cname ());
                        } else {
                                function = new CCodeFunction (acc.get_cname (), "void");