Editor could warn if a function is annotated with a return type but does not have explicit return #7418
Labels
closed-duplicate
Closed in favor of an existing report
type-enhancement
A request for a change that isn't a bug
Milestone
It would be extremely helpful to get warned if I do this (which, I've done :(
int computeIt(int foo) {
foo += 1;
// no explicit return !
}
So, if I take the time to add a type annotation for the return type of a function or method, but do not include an explicit return statement, I'd really appreciate a warning or a "head's up!"
Thanks!
(see also issue #73)
The text was updated successfully, but these errors were encountered: