Skip to content

Type coercion regression in V11 #6571

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
mxthevs opened this issue Jan 16, 2024 · 1 comment
Closed

Type coercion regression in V11 #6571

mxthevs opened this issue Jan 16, 2024 · 1 comment

Comments

@mxthevs
Copy link

mxthevs commented Jan 16, 2024

Consider the following snippet:

let _ = ("a" :> int)

In [email protected], trying to compile this piece of code will result in the following error:

Type string is not a subtype of int 

However, in [email protected], the compiler will exit with a Not_found exception, not showing the real error message.

Repro:

v10.1.2: https://rescript-lang.org/try?version=v10.1.2&code=DYUwLgBA+hC8EAoBEBDJEBcA+CBLAdmAJQBQQA
v11.0.0: https://rescript-lang.org/try?version=v11.0.0&code=DYUwLgBA+hC8EAoBEBDJEBcA+CBLAdmAJQBQQA

@zth
Copy link
Collaborator

zth commented Jan 17, 2024

Closed in #6574

@zth zth closed this as completed Jan 17, 2024
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.

2 participants