No overloads match for method 'Bind' - partial application in task CE
Open
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
Assessment
This issue has not been assessed yet.