annotate nocompile/enum_37.d @ 506:9a1ad98b24da

added illegal range and illegal type checks for Enum
author thomask
date Tue, 10 May 2005 23:43:19 +0000
parents
children 9a121126b077
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
506
9a1ad98b24da added illegal range and illegal type checks for Enum
thomask
parents:
diff changeset
1 // $HeadURL: http://dstress.kuehne.cn/nocompile/enum_37.d $
9a1ad98b24da added illegal range and illegal type checks for Enum
thomask
parents:
diff changeset
2 // $Date: 2005-05-03 22:02:05 +0200 (Di, 03 Mai 2005) $
9a1ad98b24da added illegal range and illegal type checks for Enum
thomask
parents:
diff changeset
3 // $Author: thomask $
9a1ad98b24da added illegal range and illegal type checks for Enum
thomask
parents:
diff changeset
4
9a1ad98b24da added illegal range and illegal type checks for Enum
thomask
parents:
diff changeset
5 // __DSTRESS_ELINE__ 16
9a1ad98b24da added illegal range and illegal type checks for Enum
thomask
parents:
diff changeset
6
9a1ad98b24da added illegal range and illegal type checks for Enum
thomask
parents:
diff changeset
7 module dstress.nocompile.enum_37;
9a1ad98b24da added illegal range and illegal type checks for Enum
thomask
parents:
diff changeset
8
9a1ad98b24da added illegal range and illegal type checks for Enum
thomask
parents:
diff changeset
9 enum E{
9a1ad98b24da added illegal range and illegal type checks for Enum
thomask
parents:
diff changeset
10 A = 1
9a1ad98b24da added illegal range and illegal type checks for Enum
thomask
parents:
diff changeset
11 }
9a1ad98b24da added illegal range and illegal type checks for Enum
thomask
parents:
diff changeset
12
9a1ad98b24da added illegal range and illegal type checks for Enum
thomask
parents:
diff changeset
13 E e;
9a1ad98b24da added illegal range and illegal type checks for Enum
thomask
parents:
diff changeset
14
9a1ad98b24da added illegal range and illegal type checks for Enum
thomask
parents:
diff changeset
15 enum Enum : E {
9a1ad98b24da added illegal range and illegal type checks for Enum
thomask
parents:
diff changeset
16 B = e
9a1ad98b24da added illegal range and illegal type checks for Enum
thomask
parents:
diff changeset
17 }