Skip to content

Add CheckedCastExpansion pass #549

Description

@Derppening

This pass should expand checked Cast (i.e. Cast(checked = true, ...) into an explicit if !(x is T) then throw ... test.

A WIP implementation is available in https://github.com/Derppening/mlscript/tree/enhance/checkedcastexpansion.

See #504 (comment) and #504 (comment) for the current blocker.

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