dotnet/roslyn
在 GitHub 查看Explicit method group conversion suppresses unnecessary qualification warning
Open
#1,208 创建于 2015年3月12日
Area-AnalyzersBughelp wanted
仓库指标
- Star
- (20,414 star)
- PR 合并指标
- (平均合并 6天 17小时) (30 天内合并 256 个 PR)
描述
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.