Repro steps
Defining a private type in a namespace and using it in a module in another file in the same namespace leads to a compilation error in 6.0.400.
Compiles without error in 6.0.300.
A simple repro can be found here: https://github.com/l3m/fsharp-error-repro
Expected behavior
Unclear if the behavior in 6.0.300 or 6.0.400 is the actually correct one, but it's certainly a change.
So the expectation would have been that it compiles in 6.0.400
Actual behavior
Fails to compile in 6.0.400
Known workarounds
Replace
with
Related information
Observed on both linux and windows, with dotnet sdk 6.0.300 and 6.0.400