This code fails to be processed:
Lwt_js.sleep(1.)
->Lwt.(
bind(() => {
print_endline("foo");
return();
})
);
It triggers Error: Cannot pipe into expression.
Without local opening it works ok:
Lwt_js.sleep(1.)
->Lwt.bind(() => {
print_endline("foo");
Lwt.return();
});
Is this expected?