Align Range/RangeInclusive handling with other definitions (#4489)
* Align Range/RangeInclusive handling with other definitions * Split RangeInclusive class * Rnage -> Range TypeDef * Correct Range wrappers * CHANGELOG * Remove extra Range CHANGELOG entry * Update CHANGELOG.md
This commit is contained in:
@@ -519,7 +519,9 @@ export class PortableRegistry extends Struct implements ILookup {
|
||||
});
|
||||
} else if (['Range', 'RangeInclusive'].includes(pathFirst)) {
|
||||
return withTypeString(this.registry, {
|
||||
info: TypeDefInfo.Range,
|
||||
info: pathFirst === 'Range'
|
||||
? TypeDefInfo.Range
|
||||
: TypeDefInfo.RangeInclusive,
|
||||
sub: this.#createSiDef(params[0].type.unwrap()),
|
||||
type: pathFirst
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user