Skip to content

Support generic function signatures #270

@123marble

Description

@123marble

When hovering over v in the code below, LSP shows T instead of vector, rather than the correct type based on use.

export type vector = {
    x : number,
    y : number,
    z : number,
}
export type f = <T>(c : T) -> T
local f : f
local v = f({} :: vector)

v should have type vector but only has type T so none of the properties of v show in the intellisense.

Would you be able to share if there is any plan to support this please @NightrainsRbx?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions