We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
type student = { name: string; age: int; } let _ = match (Some 1) with | Some 1 -> match [%raw "1"] with | 1 -> {name = "hi"; age = 1} | 2 -> { name = "bye"; age = Js.Math.floor 1. }
In the new compiler version, this generates a JS syntax error.
var match = 1; if (match !== undefined) { if (match !== 1) { throw [ Caml_builtin_exceptions.match_failure, /* tuple */[ "Index.ml", 387, 0 ] ]; } var match$1 = (1); if (match$1 !== 1) { if (match$1 !== 2) { throw [ Caml_builtin_exceptions.match_failure, /* tuple */[ "Index.ml", 389, 2 ] ]; } // here! { name: "bye", age: Js_math.floor(1) }; } } else { throw [ Caml_builtin_exceptions.match_failure, /* tuple */[ "Index.ml", 387, 0 ] ]; }
The text was updated successfully, but these errors were encountered:
07eb788
Merge pull request #3991 from BuckleScript/fix_3980
0858113
fix #3980
No branches or pull requests
In the new compiler version, this generates a JS syntax error.
The text was updated successfully, but these errors were encountered: