Bug 5059: Do not fail when 'refine' targets an extension.
[yangtools.git] / yang / yang-parser-impl / src / test / resources / bugs / bug5059 / foo.yang
1 module foo {
2     namespace "foo";
3     prefix foo;
4
5     revision 2016-01-25 {
6         description "test";
7     }
8
9     grouping my-grouping {
10         container my-container {
11             foo:e2 "e2";
12         }
13         foo:e1 "e1";
14     }
15
16     container root {
17         uses my-grouping {
18             refine e1 {
19                 description "new description for e1";
20             }
21             refine my-container/e2 {
22                 description "new description for e2";
23             }
24         }
25     }
26
27     extension e1 {
28         argument name;
29     }
30     extension e2 {
31         argument name;
32     }
33 }