Skip to content

Completion for a type which is an alias to some record type? #311

Closed
@cannorin

Description

@cannorin

Suppose we have the following code:

type foo<'a> = { content: 'a }
type intFoo = foo<int>

let x1: foo<int> = { content: 42 }
let x2: intFoo = { content: 42 }

If I type Js.log(x1., autocompletion is triggered and the field content is suggested. However, if I type Js.log(x2., autocompletion is not triggered.

Is this an intended behavior? I think it would be more convenient if autocompletion is triggered for x2 too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions