The type 'Threading.Tasks.Task' is not compatible with the type 'Threading.Tasks.Task<'a>'
dustinmoris opened this issue · comments
I am not sure if I am doing something wrong or if this is a bug, but I am getting the following error when trying to do a do!
binding:
The type 'Threading.Tasks.Task' is not compatible with the type 'Threading.Tasks.Task<'a>'
This is a netcoreapp2.1 project, with the latest TaskBuilder.fs and built on the latest 2.1.400 SDK.
I also opened open FSharp.Control.Tasks.V2.ContextInsensitive
.
Did I miss something?
Are you sure the error is not in next line? Different result type than inside the try/catch that happened to me a lot and error is always reported to early
Ok. Was just one thing that I was seeing a lot...
Can you provide small repro?
Ok, I found the issue. It was between my chair and my keyboard. Thanks for the help!
@forki In my case I missed one place where I didn't change from FSharp.Control.Tasks
to FSharp.Control.Tasks.V2
.