Skip to content

Wrong symbol use is reported for custom operation overloads by GetAllUsesOfAllSymbolsInFile #15206

Open
@auduchinok

Description

@auduchinok

An extraction of an issue from #11612 (comment).

When there're multiple overloads of a custom operation, a wrong overload item is reported to the sink.

type FooBuilder() =
    member _.Yield _ = 1

    [<CustomOperation "create">]
    member _.Create(i1: int, s: string, i2: int) = 1

    [<CustomOperation "create">]
    member _.Create(i: int, s1: string, s2: string) = 1

FooBuilder() {
    create "" 1
    create "" ""
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Compiler-ServiceVarious compiler service issues which do not belong to other labels/areas.BugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions