Skip to content

"Missing return statement" error for functions having infinite loop unconditionally by looping on non-exhaustive generator #7374

Open
@yxliang01

Description

@yxliang01

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions