Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 of 5 tasks
dsiu opened this issue Feb 1, 2025 · 0 comments · Fixed by #7272
Closed
3 of 5 tasks

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

dsiu opened this issue Feb 1, 2025 · 0 comments · Fixed by #7272

Comments

@dsiu
Copy link

dsiu commented Feb 1, 2025

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
cristianoc added a commit that referenced this issue Feb 1, 2025
cristianoc added a commit that referenced this issue Feb 2, 2025
cristianoc added a commit that referenced this issue Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant