Open psfinaki opened 4 months ago
We don't differentiate between collections and other types. string
and string array
are no different for us. This would probably be better solved in analyzers, rather than typechecker.
Related to: https://github.com/dotnet/fsharp/issues/17409
Option: Specialize type unification for list/array/sequence builders.
Diagnostics can offer: Explicit annotation or "be first" rule.
I think it would be good to be more explicit about nullness inference happening behind the scenes.
For the code
we'll get
It would be helpful to have something like
_Originally posted by @psfinaki in https://github.com/dotnet/fsharp/pull/15181#discussion_r1679527189_