A let! nested in a let binding used to produce error FS0750: This construct may only be used within computation expressions (in all SDKs from at least 5.0 up to 9.0), but no more in 10.0.
Example:
let y() = // unit -> Task<Task<string array>>
task {
let a =
let! b = System.IO.File.ReadAllLinesAsync("")
b
return a
}
The let! in the fourth line is silently interpreted as a simple let, as you can see from the types of a, b and y.
(I do actually believe it should be properly compiled, but that is a separate issue. The first step is probably to bring the error message back.)
A
let!nested in aletbinding used to produceerror FS0750: This construct may only be used within computation expressions(in all SDKs from at least 5.0 up to 9.0), but no more in 10.0.Example:
The
let!in the fourth line is silently interpreted as a simplelet, as you can see from the types ofa,bandy.(I do actually believe it should be properly compiled, but that is a separate issue. The first step is probably to bring the error message back.)