Skip to content

bug: crash due to unreachable code reached #285

@b-fein

Description

@b-fein

Minimal reproduction:

# stage.gs

onloudness > -2 {
}

Run goboscript build. Results in the error:

panicked at src/blocks.rs:53:18:
internal error: entered unreachable code
goboscript is cooked 💀

For other values ≥0 it works. So it seems like the parser does not expect the - of negative numbers here.

Maybe also same problem for ontimer?


$ goboscript --version
goboscript 446135f

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions