Stylecopanalyzers: SA1101 false report for named tuple elements

Created on 26 Sep 2017  路  4Comments  路  Source: DotNetAnalyzers/StyleCopAnalyzers

The following code produced an SA1101 report, and the code fix threw an exception:

protected async Task Method(Func<(Project project, bool fixAll), Task> verifyFixedProjectAsync)
{
  // SA1101 reported twice on the following line:
  Func<Project, Task> verifyAsync = project => verifyFixedProjectAsync((project: project, fixAll: false));
}
bug c# 7

Most helpful comment

are you planning to release it? thanks :) it has been a while since last release

All 4 comments

I can confirm the same problem on my side.

Code:

someList.Select(x => (SomeName: $"{x.ValueA} ({x.ValueB})", x.ValueC))

Reported SA1101 for SomeName

@sharwell Do you need help with this issue? I would not mind giving it a try.

@dlemstra Go for it 馃憤

are you planning to release it? thanks :) it has been a while since last release

Was this page helpful?
0 / 5 - 0 ratings

Related issues

snowjim picture snowjim  路  6Comments

wmjordan picture wmjordan  路  6Comments

drewnoakes picture drewnoakes  路  3Comments

patriksvensson picture patriksvensson  路  6Comments

SetTrend picture SetTrend  路  5Comments