Skip to content

Mutually-exclusive multi-return #3102

Answered by tomlau10
ChristopherJTrent asked this question in Q&A

You must be logged in to vote

This has been feature requested in multiple issues and discussion:

And from comments of maintainers #3086 (comment)
it is planned to support the following syntax:

---@return =(true, some_type)
---@return =(false, string)

(but not yet implemented of course)

Replies: 1 comment 2 replies

You must be logged in to vote
2 replies
@ChristopherJTrent

@tomlau10

Answer selected by ChristopherJTrent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants