Creates a union of integer literals starting from MinValue (inclusive) up
to MaxValue (inclusive). Unlike UintRangeInclusive, the bounds may
be negative.
Both bounds are limited to the signed 11-bit range (Int11, -1024 to
1023); an inclusive upper bound never needs the extra 1024 that
IntRange's exclusive End accepts. Ranges where
MinValue > MaxValue (including a positive MinValue with a negative
MaxValue) resolve to never.
Type Parameters
MinValueextendsInt11
The starting integer literal (inclusive).
MaxValueextendsInt11
The ending integer literal (inclusive).
Returns
A union type MinValue | MinValue + 1 | ... | MaxValue.
Creates a union of integer literals starting from
MinValue(inclusive) up toMaxValue(inclusive). Unlike UintRangeInclusive, the bounds may be negative.Both bounds are limited to the signed 11-bit range (
Int11,-1024to1023); an inclusive upper bound never needs the extra1024that IntRange's exclusiveEndaccepts. Ranges whereMinValue > MaxValue(including a positiveMinValuewith a negativeMaxValue) resolve tonever.