More control on missing-return
diagnostics.
#2057
Unanswered
AndreasMatthias
asked this question in
Q&A
Replies: 1 comment 1 reply
-
There is an issue open for a feature that may satisfy your needs here |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
The following example triggers a
missing-return
diagnostics for functionfoo()
.I could disable this diagnostics with
but then I would not get a warning for the
elseif n > 10
branch, wherereturn
is actually missing.It seems to me that I can only disable this diagnostics for the whole if-statement, but not for a certain branch
of this if-statement.
Beta Was this translation helpful? Give feedback.
All reactions