Skip to content

@unboxed breaks with just one constructor #6519

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
zth opened this issue Dec 11, 2023 · 0 comments · Fixed by #6523
Closed

@unboxed breaks with just one constructor #6519

zth opened this issue Dec 11, 2023 · 0 comments · Fixed by #6523

Comments

@zth
Copy link
Collaborator

zth commented Dec 11, 2023

@unboxed type x = One

let x = One

This breaks with:

Fatal error: exception File "jscomp/ml/translcore.ml", line 836, characters 60-66: Assertion failed

Add another constructor to x and it compiles.

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