Skip to content

overloading function makes returns inaccurate #1146

Closed
@Bilal2453

Description

@Bilal2453

When setting an overload for some function with different returns, the suggested returns are always the sum of all possible returns no matter the used overload used.

For example:
image

Creating a function overload by defining it more than once seems to override the returns always although:

image

Not entirely sure if this is indeed the expected behavior, but it definitely seems like the language server has enough context to figure out the return type easily enough, I would suppose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions