GNOME Bugzilla – Bug 637177
Nested types should be allowed in aliases
Last modified: 2015-02-07 16:52:54 UTC
A typedef like the following: typedef GSList TestSList; Generates the following in gir: <alias name="SList" c:type="TestSList"> <type name="GLib.SList" c:type="GSList"> <type name="gpointer" c:type="gpointer"/> </type> </alias> Which g-ir-compiler does not like: Test-0.0.gir:16:50: error: The element <type> is invalid here error parsing file Test-0.0.gir: The element <type> is invalid here Nested types seem allowed in other places. I suspect this is due to the special alias handling in girparser.c:start_type(), but did not know the code well enough to propose a solution. I've attached a simple script to reproduce the problem.
Created attachment 176359 [details] Test case
Hmm, this might be a dup of bug 629682.
This works fine now, so indeed looks like a duplicate. *** This bug has been marked as a duplicate of bug 629682 ***
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]