]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girwriter: Do not write generic type parameters
authorJürg Billeter <j@bitron.ch>
Mon, 12 Jul 2010 18:03:12 +0000 (20:03 +0200)
committerJürg Billeter <j@bitron.ch>
Mon, 12 Jul 2010 18:03:12 +0000 (20:03 +0200)
Fixes bug 624109.

codegen/valagirwriter.vala

index 395c567fdaa85385b0cfd147a90c96d492997b83..b01eb478010bd5eb5fc2b47e0854bb56b9c4c887 100644 (file)
@@ -882,6 +882,10 @@ public class Vala.GIRWriter : CodeVisitor {
                        var deleg_type = (DelegateType) type;
                        write_indent ();
                        buffer.append_printf ("<type name=\"%s\" c:type=\"%s\"/>\n", gi_type_name (deleg_type.delegate_symbol), type.get_cname ());
+               } else if (type is GenericType) {
+                       // generic type parameters not supported in GIR
+                       write_indent ();
+                       buffer.append ("<type name=\"any\" c:type=\"gpointer\"/>\n");
                } else {
                        write_indent ();
                        buffer.append_printf ("<type name=\"%s\"/>\n", type.to_string ());