Skip to content

Type coercion regression in V11 #6571

Closed
@mxthevs

Description

@mxthevs

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

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