Skip to content

IsExtensionMethod returns false for C# 14 extension method #79987

@sbomer

Description

@sbomer
Image

This is using:

<MicrosoftCodeAnalysisPackageVersion>5.0.0-2.25414.103</MicrosoftCodeAnalysisPackageVersion>

I assume it should return true instead, right?

    public static class Extensions
    {
        extension(Type type)
        {
            public void ExtensionMethodMismatch() => type.RequiresPublicMethods();
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions