Skip to content

Enum members revert to initial value on decompile #11165

@ganicke

Description

@ganicke

Found in micro:bit radio-broadcast lib from pxt-common-packages. Issue is filed here since it looks like a problem with the enum helper.

Describe the bug

The RadioMessage enum value connected to the radio.sendMessage block will revert to the initial value of message1 on decompile even though a different one is set.

Example:

The blocks show message1 when Hello and Goodbye are in the original code.

Image

Expected behavior

The blocks contain the originally selected enum value.

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