Code inspection: Redundant range bound
This inspection reports a range bound when the bound is already implied by the syntax. For example, 0.. already means "from the start", so the 0 is redundant.
class C
{
void M()
{
var range = 0..;
}
}
class C
{
void M()
{
var range = ..;
}
}
The same idea applies to other bounds that are already implied by the target sequence.
13 April 2026