Replies: 2 comments 3 replies
-
|
If you put your code into a function and add a return after the I hope that can help in your use case. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
-
Say I have something like this:
LuaLS complains that I've accessed

foo.bareven thoughfoocould benil:But if I use the builtin

errorinstead of mycustom_error, LuaLS knows that this point cannot be reached whenfooisnil:Is there a way to annotate
custom_errorso that LuaLS will know that it never returns, just like the builtinerror?Beta Was this translation helpful? Give feedback.
All reactions