-
-
Notifications
You must be signed in to change notification settings - Fork 386
Closed
Labels
questionUser has a questionUser has a question
Description
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Linux
What is the issue affecting?
Annotations, Type Checking
Expected Behaviour
There is a lot of functions which return errors as second return value (example: io.open, file:write()) but nondiscard don't check that all return values not discarded
- nodiscard show warning when any of return values is ignored
or - Option to mark each return value as non-discardable
Actual Behaviour
Reproduction steps
local f = io.open() -- should be message that errmsg can't be discarded
Additional Notes
No response
Log File
No response
Metadata
Metadata
Assignees
Labels
questionUser has a questionUser has a question
