Skip to content

Name of AllowedRequiredModifierType.System_Runtime_CompilerServices_OutAttribute implies wrong location of the OutAttribute type #74403

@AlekseyTs

Description

@AlekseyTs
                    else if ((allowedRequiredModifierType & AllowedRequiredModifierType.System_Runtime_CompilerServices_OutAttribute) != 0 &&
                        modifierType.IsWellKnownTypeOutAttribute())
                    {
                        current = AllowedRequiredModifierType.System_Runtime_CompilerServices_OutAttribute;
                    }
        internal static bool IsWellKnownTypeOutAttribute(this TypeSymbol typeSymbol) => typeSymbol.IsWellKnownInteropServicesTopLevelType("OutAttribute");

It loos like the type is actually in InteropServices namespace rather than in CompilerServices.

This doesn't affect correctness of the behavior, I think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions