Skip to content

Name resolution environment in record field does not contain generic type #13076

Closed
@kerams

Description

@kerams
type U<'abc> =
    | C of ab

type R<'abc> = {
    F: ab
}

Intellisense completions on ab in U contain 'abc (as of #12933), but the generic type is missing on ab in R. This is because the name resolution environment returned by GetBestEnvForPos in the latter case does not contain the generic type, i.e. nenv.eTypars is empty.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions