]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codewriter: Write type parameters for struct declaration
authorLuca Bruno <lucabru@src.gnome.org>
Wed, 17 Aug 2011 07:15:21 +0000 (09:15 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Wed, 17 Aug 2011 07:15:21 +0000 (09:15 +0200)
Based on patch by Andre Masella.

Fixes bug 656708.

vala/valacodewriter.vala

index 3a849e000711ced6e52f4a4c03317d5545783ee4..f79c2aff28e6aa30da6a6ccea53282097076b7e2 100644 (file)
@@ -291,6 +291,8 @@ public class Vala.CodeWriter : CodeVisitor {
                write_string ("struct ");
                write_identifier (st.name);
 
+               write_type_parameters (st.get_type_parameters ());
+
                if (st.base_type != null) {
                        write_string (" : ");
                        write_type (st.base_type);