GNOME Bugzilla – Bug 690380
Generated equal-functions of derived structs are broken
Last modified: 2013-01-18 18:26:33 UTC
The generated equal-functions of derived structs are broken. e.g. comparing two Gdk.Rectangle in gtk+3.0 doesn't work.
Created attachment 231775 [details] [review] codegen: Use equal method of base-struct for derived structs
Created attachment 231776 [details] [review] codegen: Use equal method of base-struct for derived structs
Review of attachment 231776 [details] [review]: ::: tests/structs/bug690380.vala @@ +3,3 @@ +} + +struct Bar : Foo { It would make sense to test the case where the derived struct also have fields that must be compared.
> It would make sense to test the case where the derived struct also have fields > that must be compared. Adding additional fields to derived structs is not possible.
Review of attachment 231776 [details] [review]: Looks safe to me.
Review of attachment 231776 [details] [review]: commit a18c17e614ad5d3e8b6af31e1b986f717af30cbb Author: Rico Tzschichholz <ricotz@t-online.de> Date: Mon Dec 17 21:27:27 2012 +0100 codegen: Use equal method of base-struct for derived structs https://bugzilla.gnome.org/show_bug.cgi?id=690380