Skip to content

Add protocol mapper sanity check to protodef-validator #21

Description

@extremeheat

Protocol switches could reference values absent from their preceding mapper, causing undefined dispatch behavior

There should be sanity check to ensure switches happen on enum values that are defined, if the interpreter/compiler knows what the possible enumerated values are (custom datatypes may not make this information available for sanity check)

Related

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