Rescript@v12.0.0-alpha.6 - Compiler Assertion when comparing `null` with `undefined`

Happens in rescript@v12.0.0-alpha.6 but NOT in rescript@v11.1.6

let a = null
let b = undefined
let res = a != b

yields

Unexpected Error

File "compiler/core/js_exp_make.ml", line 1756, characters 12-18: Assertion failed

Playgound link

Good catch, could you create an issue in the compiler repo?

done. here is the issue https://github.com/rescript-lang/rescript/issues/7225

1 Like