Skip to content

No overloads match for method 'Bind' - partial application in task CE #18540

Open
@mbn92

Description

@mbn92

When using partial application in combination with task CE the compiler return: error FS0041: No overloads match for method 'Bind'.

Repro steps

test.fsx

let myfun x  y =
  async {
    ()
  }

let testTask =
  task {
    do! myfun 1
  }

let testAsync =
  async {
    do! myfun 1
  }

Expected behavior

unknown(0,1): error FS0041: No overloads match for method 'Bind'.

Actual behavior

test.fsx(13,9): error FS0001: This expression was expected to have type [...]

Similar to that of async CE.

Known workarounds
N/A

Related information
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Compiler-CheckingType checking, attributes and all aspects of logic checkingArea-ComputationExpressionsEnd-to-end experience for computation expressions (except async and state machine compilation)Bug

    Type

    Projects

    Status

    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions