Skip to content

Refactoring "Generate method" not suggested. #16975

@josefpihrt

Description

@josefpihrt

Version Used: Visual Studio 2017 RC 15.0.0-RC3+26127.0

Code to Reproduce:

using Microsoft.CodeAnalysis;

namespace My
{
    public static class Foo
    {
        public static void Bar(SyntaxNode node)
        {
            ReportDiagnostic(node); // "Generate method" not suggested here

            ReportDiagnostic2(node); // "Generate method" suggested here
        }
    }
}

It seems that this error occurs when there is a type with same name as method that would be generated. In this case there is enum "Microsoft.CodeAnalysis.ReportDiagnostic".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions