Why do I get the error message "Search for an object of indefinite type based on information up to this point in the program ..."
I already annotated type information.
It allocates the r.Read() code.
let rec foldResult myFunc accumulator r:SqlDataReader = if r.Read() then foldResult myFunc (myFunc 123456 accumulator) r:SqlDataReader else accumulator
Jayr
source share