Feature request: detect and suggest discards in tuple deconstruction
Open
- Dominant language
- C#
- Stars
- 3.5k
- Forks
- 294
- Avg merge
- 2h 30m
- Merged PRs (30d)
- 4
Description
Code along these lines:
```csharp
var (foo, bar, quux) = MethodThatReturnsATwoTuple();
foo.DoSomething();
// bar is never used and could be discarded
quux.AnotherThing();
```
could be rewritten as:
```csharp
var (foo, _, quux) = MethodThatReturnsATwoTuple();
foo.DoSomething();
quux.AnotherThing();
```
Contributor guide
Assessment
This issue has not been assessed yet.