PipeFirst
PipeFirst copied to clipboard
"Cannot pipe into expression" when piping into local open
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?
Seems I forgot to implement the local open case. Will fix :)