Skip to content

return enum function #1372

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
RomanSpector opened this issue Jul 22, 2022 · 1 comment
Closed

return enum function #1372

RomanSpector opened this issue Jul 22, 2022 · 1 comment
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@RomanSpector
Copy link

image

---@enum test
local test =
{
    test1 = 1,
    test2 = 2,
    test3 = 3,
}


---@return test
local function returnenum()
    return test.test1;
end

local t1 = returnenum();
@RomanSpector RomanSpector reopened this Jul 23, 2022
@sumneko sumneko added the bug Something isn't working label Jul 23, 2022
@sumneko
Copy link
Collaborator

sumneko commented Jul 25, 2022

Same with #1370

@sumneko sumneko closed this as completed Jul 25, 2022
@sumneko sumneko added the duplicate This issue or pull request already exists label Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants