From: Jürg Billeter Date: Mon, 14 Sep 2009 19:14:44 +0000 (+0200) Subject: Fix virtual struct properties X-Git-Tag: 0.7.6~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d38a5c18efc95eba2b4e2f6f7146f991a7241bc;p=thirdparty%2Fvala.git Fix virtual struct properties --- diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala index aa00179fb..4674539de 100644 --- a/codegen/valaccodebasemodule.vala +++ b/codegen/valaccodebasemodule.vala @@ -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");