dotnet/roslyn

Explicit method group conversion suppresses unnecessary qualification warning

Open

#1,208 创建于 2015年3月12日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)C# (4,257 fork)batch import
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.

贡献者指南