Tüm Yanıtlar

Why are you explicitly writing xyz as type System.Object? Let it be Objects.ObjectResult<'a> as it wants and you will have an enumerable collection of results which you can cast/project into an array as necessary (via Seq.toArray, Seq.map and
the like).

Error: Value restriction. The value 'xyz' has been inferred to have generic type val xyz : Objects.ObjectResult<'_a> Either define 'xyz' as a simple data term, make it a function with explicit arguments or, if you do not intend for it to be generic,
add a type annotation.