source: tests/enum_tests/enumInlineValue.cfa @ 1a45263

ADTast-experimental
Last change on this file since 1a45263 was 77de429, checked in by JiadaL <j82liang@…>, 2 years ago

Fix overriding enum value

  • Property mode set to 100644
File size: 308 bytes
Line 
1#include <fstream.hfa>
2enum enumA {
3    A=5, B, C=10, D
4};
5
6enum enumB {
7    inline enumA,
8    E, B=10
9};
10
11int main() {
12    enum enumB val = A;
13    sout | "enumB.A is" | val;
14    enum enumB val2= enumB.B;
15    sout | "enumB.B is" | val2;
16    sout | "enumB.D is" | enumB.D;
17    sout | "enumB.E is" | enumB.E;
18}
Note: See TracBrowser for help on using the repository browser.