Skip to content

"Cannot pipe into expression" when piping into local open #3

@jchavarri

Description

@jchavarri

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions