Skip to content

SubstitutedMethodSymbol.Equals doesn't compare top level nullable annotations for type arguments #35083

@AlekseyTs

Description

@AlekseyTs
            // This checks if the type parameters on the method itself have been substituted in the same way.
            int arity = this.Arity;
            for (int i = 0; i < arity; i++)
            {
                // TODO: what about annotations
                if (!TypeSymbol.Equals(this.TypeArgumentsWithAnnotations[i].Type, other.TypeArgumentsWithAnnotations[i].Type, TypeCompareKind.ConsiderEverything2))
                {
                    return false;
                }
            }

Note the TODO: comment

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