GIR output lacks internal fields, typelib becomes ABI-incompatible
Submitted by Thomas Martitz
Link to original bug (#754550)
Description
In the generate C, the internal fields of a class are in the public struct definition (see https://bugzilla.gnome.org/show_bug.cgi?id=697777). However, the GIR output lacks these internal fields entirely.
The result is that the typelib doesn't know about it when accessing members that come after the internal fields, and thus accesses wrong members.
Attached is a test case, generate with valac --vapi=test.vapi --gir=Test-1.0.^Cr test.vala --library test