Skip to content

%external broken in v12.0.0-alpha.8 #7270

Closed
@dsiu

Description

@dsiu

This code from the official documentation doesn't compile in v12.0.0-alpha.8. It works find in alpha.7. I suppose it is due to the removal of Pervasives.\"="

switch %external(__DEV__) {
| Some(_) => Console.log("dev mode")
| None => Console.log("production mode")
}

Error:

Type Errors
[E] Line 1, column 7:
The value = can't be found in Pervasives

Playground link: here

Thank you for filing! Check list:

  • Is it a bug? Usage questions should often be asked in the forum instead.
  • Concise, focused, friendly issue title & description.
  • A minimal, reproducible example.
  • OS and browser versions, if relevant.
  • Is it already fixed in master? Instructions

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