diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/cvtest.d | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/cvtest.d b/test/cvtest.d index 283e972..4d64873 100644 --- a/test/cvtest.d +++ b/test/cvtest.d @@ -231,8 +231,18 @@ int arrays() return iarr.length;
}
+enum { Forward, Accept, Reject }
+alias int Action;
+
+Action convertEnum()
+{
+ return Accept;
+}
+
int main2(char[][]argv)
{
+ convertEnum();
+
enum_name inst_enum = enum_name.kEnum2;
class_member inst_member = new class_member;
base_class inst_base = new base_class;
|