Code inspection: Redundant explicit tuple component name
This inspection reports an explicit tuple component name when the name is unnecessary because the target tuple shape already defines the component names. Keeping the explicit name makes the tuple literal more verbose without adding meaning.
Example
class C
{
(int a, int b) M() => (b: 1, a: 2);
}
class C
{
(int a, int b) M() => (b: 1, 2);
}
Quick-fix
The quick-fix removes the redundant tuple component name. This inspection focuses on names that can be removed safely without changing which tuple element is produced.
13 April 2026