6b8e72453f314da1c8f9074f8c5b51ebcd192d01
[yangtools.git] / yang / yang-parser-impl / src / test / resources / bugs / bug8831 / invalid / inv-model.yang
1 module inv-model {
2     yang-version 1.1;
3     namespace "http://www.inv-model.com";
4     prefix ex;
5
6     revision 2017-07-10;
7
8     feature my-feature {
9         description "my feature";
10     }
11
12     typedef enum-last {
13         type union {
14             type uint16;
15             type enumeration {
16                 enum "any" {
17                     if-feature my-feature;
18                 }
19             }
20         }
21     }
22
23     container top {
24         leaf enum-last-leaf {
25             type enum-last;
26             default "any";
27         }
28     }
29 }