Skip to content

Switch-on-string fails to simplify #500

@aoqia194

Description

@aoqia194

Vineflower version

master

Describe the bug

Given a simple return switch with the condition being a string and the switch block only containing one case and the required default, it will not properly simplify like a switch-on-string with two cases correctly simplifies. The same thing happens when given a switch that has string cases and returns something.

Additional information

Can be easily replicated following the decompilation output of TestSingleCaseStrSwitch, TestEclipseSwitchString and TestSwitchExprString1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions