PipeFirst icon indicating copy to clipboard operation
PipeFirst copied to clipboard

"Cannot pipe into expression" when piping into local open

Open jchavarri opened this issue 6 years ago • 1 comments

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?

jchavarri avatar May 29 '19 22:05 jchavarri

Seems I forgot to implement the local open case. Will fix :)

IwanKaramazow avatar May 30 '19 06:05 IwanKaramazow