Thank you for filing! Check list:
Recursive function with no parameters generate while loop which contains assignment to undeclared _param
variable
let test = () => {
let rec loop = () => {
switch () {
| _ => loop()
}
}
loop()
}
// Generated by ReScript, PLEASE EDIT WITH CARE
function test() {
var loop = function () {
while(true) {
_param = undefined;
continue ;
};
};
return loop();
}
export {
test ,
}
/* No side effect */