Skip to content

Statements after infinite loops are not considered unreachable #648

@sharkdp

Description

@sharkdp

The following example should not emit a diagnostic

def f():
    while True:
        pass

    foo  # error: unresolved-reference

https://play.ty.dev/9108a9b2-63fd-42d7-8a3c-5810509cdd4a

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions