dotnet/roslyn
Vedi su GitHubExplicit method group conversion suppresses unnecessary qualification warning
Open
#1208 aperta il 12 mar 2015
Area-AnalyzersBughelp wanted
Metriche repository
- Star
- (20.414 star)
- Metriche merge PR
- (Merge medio 6g 17h) (256 PR mergiate in 30 g)
Descrizione
using System;
class X {
void M() { R((Action)this.M); }
void R(Action a) { }
}
(Action) is highlighted as unnecessary, but this. isn't.
Removing (Action) correctly highlights it in gray.
Typename qualifiers for static methods are similarly missed, but namespace qualifiers are not.