[vala] Support enums as generic type arguments
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] Support enums as generic type arguments
- Date: Mon, 2 Nov 2009 16:22:16 +0000 (UTC)
commit 7b840bb873eac88675776060e61e2d3c61191e47
Author: Jürg Billeter <j bitron ch>
Date: Mon Nov 2 17:21:35 2009 +0100
Support enums as generic type arguments
codegen/valaccodebasemodule.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 84c066f..9b240a4 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]