dotnet / dotnet/fsharp

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

Open
#18,540 2 comments 1 reaction 0 assignees View on GitHub
Area-Compiler-Checking Area-Compiler-Checking-Overloads Area-ComputationExpressions Bug
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

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

**Repro steps**

`test.fsx`
```fsharp
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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.