module mod5 { | |
prefix abc; | |
namespace "urn:cesnet:mod5"; | |
typedef my-base-int32-type { | |
type int32 { | |
range "1..4 | 10..20"; | |
} | |
} | |
typedef my-type1 { | |
type my-base-int32-type { | |
// legal range restriction | |
range "11..max"; // 11..20 | |
} | |
} | |
typedef my-type2 { | |
type my-base-int32-type { | |
// illegal range restriction | |
range "11..100"; | |
} | |
} | |
} |