Fix code generation with leafrefs pointing to optional members
[mdsal.git] / binding / mdsal-binding-generator / src / test / resources / mdsal829.yang
1 module mdsal829 {
2   namespace mdsal829;
3   prefix mdsal829;
4
5   feature feat;
6
7   typedef foo {
8     type leafref {
9       path /mdsal829:bar;
10     }
11   }
12
13   leaf bar {
14     if-feature feat;
15     type string;
16   }
17 }