dotnet/roslyn
Explicit method group conversion suppresses unnecessary qualification warning
Aperta
#1208 aperta il 12 mar 2015
Area-AnalyzersBughelp wanted
Metriche repository
- Star
- (20.414 stelle)
- Metriche merge PR
- (Metriche PR in attesa)
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.