-
Type: Bug
-
Status: Closed (View Workflow)
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: 1.8.0
-
Fix Version/s: 1.8.0
-
Component/s: None
-
Labels:None
-
Story Points:3
1. if leaf ref (which resolved type is empty) is defined under typedef and used under union
error should be thrown for this scenario at compile time as empty type is not allowed in union
2. if two leafs defined as
leaf l1
{ type empty; } typedef type-def1 {
type leafref
}
leaf list4 {
type union
}
leaf list5 {
type union { type int32; type type-def1; }
}
then compilation is failing only for second one not for first one,
expected :- compilation should have failed first time itself
3. if two leaf defined as
typedef type-def2 {
type leafref
}
leaf list4 {
type union
}
leaf list5 {
type union
}
then compilation is getting failed first time itself
# | Subject | Branch | Project | Status | CR | V |
---|---|---|---|---|---|---|
11916,1 | [ONOS-5679],[ONOS-5663] union invalid derived type defect fixed. | master | onos-yang-tools | Status: MERGED | +2 | +1 |