GIR : Error due to sequence
Submitted by geert jordaens
Link to original bug (#615984)
Description
When trying to use the Gir files for Gee I came across some errors. The include patch fixes some of them.
Patch includes fix for error when :
-
<return-value>
tag is after the<parameters>
tag. - Brings the
<requires>
and<prerequisite>
in valagirparser/writer in line. - Adds constants to the interface definition
- Adds classes to the interface definition
I could not fix the generics GIR should need some tags to make a distinction between normal parameters and the generic type parameters.
<type-parameters>
<type-parameter name=...>
<type name="any" c:type="gconstpointer"/>
</type-parameter>
</type-parameters>
/* valac -o G --pkg Gee-1.0 G.vala */
using Gee;
public static int main (string[]args)
{
var e = new HashMap <string, string> (null, null, null);
return 0;
}
Error :
G.vala:33.13-33.64: error: too many type arguments
var e = new HashMap <string, ElementType> (null, null, null);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Version: 0.8.x
Edited by Rico Tzschichholz