dotnet/roslyn
Explicit method group conversion suppresses unnecessary qualification warning
開放
#1,208 建立於 2015年3月12日
Area-AnalyzersBughelp wanted
倉庫指標
- 星標
- (20,414 顆星)
- 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.