Skip to content

Failure to emit a switch statement when default case has type annotation #1452

Closed
@scabug

Description

@scabug

e.g.

   x match {
      case 1 | 2 | 3 => "foo";
      case (_ : Int) => "bar";
   }

will emit a series of comparisons rather than a switch.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions