Skip to content

Symbols API: FSharpEntity.IsByRef is false for byref`1 #3532

Open
@auduchinok

Description

@auduchinok

I've encountered this issue in the type of return parameter of ~& in prim-types.fs in FSharp.Core project by getting property mfv.ReturnParameter.Type.TypeDefinition.IsByRef.
The mfv symbol was taken from GetAllUsesOfAllSymbolsInFile and I think the underlying issue may be in FSharpSymbol.Create, which I'm going to look into.
https://github.com/Microsoft/visualfsharp/blob/83208f8cb02e8d6d56757e45cd73545524180644/src/fsharp/FSharp.Core/prim-types.fs#L540-L543

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-LangService-APIBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.

    Type

    Projects

    Status

    In Progress

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions