Open
Description
When having functions having infinite loop unconditionally by looping on non-exhaustive generator, there should be no return
statements after the infinite looping block since all statements after the looping block are unreachable. Therefore, this "Missing return statement" error is a false-positive. The test case exposing this false-positive is implemented in #7373 .
Thanks