Skip to content

exit() shares a return type with builtins that actually return #253

Description

@zimri-leisher

exit() is declared with the same no-value return type as genuinely returning builtins like sleep() and log() (src/fpy/macros.py), so nothing in the type system records that control never continues past a call to it. A distinct bottom type would let later passes treat code after exit() as unreachable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions