Bug 5788: enum used as a key does not work
[mdsal.git] / binding / mdsal-binding-java-api-generator / src / test / resources / compilation / bug5788 / foo.yang
1 module foo {
2     namespace "urn:yang.foo";
3     prefix "foo";
4
5     revision "2016-01-02" {
6     }
7
8     grouping A {
9         leaf B {
10             type enumeration {
11                 enum X {}
12                 enum Y {}
13             }
14         }
15     }
16
17     container C {
18         list D {
19             key "B";
20             uses A;
21         }
22     }
23 }