c38eddcd5b20a7e9fffbee117fdf38eb84c82237
[yangtools.git] / yang / yang-parser-impl / src / test / resources / rfc7950 / bug6901 / invalid-foo-10-enum.yang
1 module invalid-foo-10-enum {
2     namespace "foo";
3     prefix foo;
4
5     feature f;
6
7     typedef enum-typedef {
8         type enumeration {
9             enum one;
10             enum two {
11                 if-feature f;
12             }
13             enum three;
14         }
15     }
16
17     typedef enum-typedef-2 {
18         type enum-typedef;
19     }
20
21     leaf enum-leaf {
22         type enum-typedef-2;
23         default three;
24     }
25 }