Skip to content

More untagged variant output inefficiency #7140

Closed
@cknitt

Description

@cknitt

Followup to #7138:

Consider the output here:
https://github.com/rescript-lang/rescript-compiler/blob/41e2fd64dc166a6f092d65ddbf607d4b2878f0b4/tests/tests/src/UntaggedVariants.mjs#L403

          if (match$3 === undefined || match$3 === null || match$3 === false || match$3 === true) {
            console.log("Nope...");
            return;
          }
          if (typeof match$3 === "string" && match$3 === "My name is") {

could just be

          if (match$3 === "My name is") {

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