dotnet/roslyn
GitHub で見るExplicit method group conversion suppresses unnecessary qualification warning
Open
#1,208 opened on 2015年3月12日
Area-AnalyzersBughelp wanted
Repository metrics
- Stars
- (20,414 stars)
- PR merge metrics
- (平均マージ 6d 17h) (30d で 256 merged PRs)
説明
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.