Skip to content

Pattern matching for chars are broken #5557

Closed
@amiralies

Description

@amiralies
let isA = c =>
  switch c {
  | 'a' => true
  }

produces this

// Generated by ReScript, PLEASE EDIT WITH CARE
'use strict';


function isA(c) {
  return true;
}

exports.isA = isA;
/* No side effect */

without warnigs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions