Bug 6771: Problem with typedefs nested in augment
[yangtools.git] / yang / yang-parser-impl / src / test / resources / bugs / bug6771 / choice-case / typedef-bug.yang
1 module typedef-bug {
2     namespace "http://www.example.com/typedef-bug";
3     prefix tdb;
4
5     container root {
6         choice my-choice {
7             case one {
8                 container container-one {
9
10                     typedef type-container-b {
11                         type uint32;
12                     }
13
14                     leaf leaf-container-b {
15                         type type-container-b;
16                     }
17                 }
18             }
19             case two {
20                 container container-two {
21
22                     leaf leaf-container-b {
23                         type type-container-b;
24                     }
25
26                     typedef type-container-b {
27                         type uint32;
28                     }
29                 }
30             }
31             case three {
32                 container container-three {
33                     container inner-container {
34                         leaf leaf-container-b {
35                             type type-container-b;
36                         }
37                     }
38                     typedef type-container-b {
39                         type uint32;
40                     }
41                 }
42             }
43         }
44     }
45 }