]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Support enums as generic type arguments
authorJürg Billeter <j@bitron.ch>
Mon, 2 Nov 2009 16:21:35 +0000 (17:21 +0100)
committerJürg Billeter <j@bitron.ch>
Mon, 2 Nov 2009 16:21:35 +0000 (17:21 +0100)
codegen/valaccodebasemodule.vala

index 84c066fde4b326b7b894e1abeb6b3306a4eadc23..9b240a4e8628560dc428ba7865d6f6340eb69a65 100644 (file)
@@ -3544,6 +3544,8 @@ internal class Vala.CCodeBaseModule : CCodeModule {
                        return true;
                } else if (st == gtype_type) {
                        return true;
+               } else if (type_arg is EnumValueType) {
+                       return true;
                } else {
                        return false;
                }