Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 1795

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

$
0
0

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


Viewing all articles
Browse latest Browse all 1795

Trending Articles