Skip to content

overload feature is not working properly #123

Closed
@MrMartin92

Description

@MrMartin92

Hi,

I'm unable to get the ---@overload feature to work.
This is my code:

--- Create and return a new AnimationGroup as a child of this Region.
---@param name string
---@param inheritsFrom string
---@return boolean test
---@overload fun():boolean
---@overload fun(name:string):boolean
function Region:CreateAnimationGroup(name, inheritsFrom) end

and this is the result:
image
You can see there are no parameters shown and I'm also not able to set a name for the return value.

The expected behavior for me would look something like this:

function Region:CreateAnimationGroup(name: string, inheritsFrom: string)
 -> test: boolean
function Region:CreateAnimationGroup(name: string)
 -> test: boolean
function Region:CreateAnimationGroup()
 -> test: boolean

Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    feat/LuaCats AnnotationsRelated to Lua Language Server Annotations (LuaCats)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions