YANGTOOLS-706: Split out yang-parser-rfc7950
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / resources / rfc7950 / bug6887 / bar.yang
1 module bar {
2     namespace bar;
3     prefix bar;
4     yang-version 1.1;
5
6     revision 2017-02-02;
7
8     typedef my-base-bits-type {
9         type bits {
10             bit bit-a {
11                 position 1;
12             }
13             bit bit-b;
14             bit bit-c {
15                 position 3;
16             }
17             bit bit-d {
18                 position 4;
19             }
20         }
21     }
22
23     typedef my-derived-bits-type {
24         type my-base-bits-type {
25             bit bit-b;
26             bit bit-c {
27                 position 3;
28             }
29             bit bit-d {
30                 position 4;
31             }
32         }
33     }
34
35     leaf my-bits-leaf {
36         type my-derived-bits-type {
37             bit bit-b;
38             bit bit-c {
39                 position 3;
40             }
41         }
42     }
43
44     leaf my-bits-leaf-2 {
45         type my-derived-bits-type {
46             // inherits bits from the base type
47         }
48     }
49 }