Skip to content

BitArray pattern on JS target never matches despite being equal to the created value #4388

Open
@giacomocavalieri

Description

@giacomocavalieri

This code:

pub fn main() {
  echo case <<12:size(1)>> {
    <<12:size(1)>> -> 1
    _ -> 2
  }
}

Outputs 2 instead of 1 when ran on the JS target

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