This is likely the same cause as in #17827, however, the misleading error reported there should be fixed separately from this one, as this is likely about resolving references during the unpickling of the serialized F# metadata.
Consider this library project:
File1.fs:
namespace Ns.TypeName
File2.fs:
namespace Ns
type TypeName = { Field: int }
module Module =
let f (tn: TypeName) = ()
Reference this project from the following console app one:
module Ns.Another
Module.f null
There's an internal error when trying to use the function that uses the type:
This is likely the same cause as in #17827, however, the misleading error reported there should be fixed separately from this one, as this is likely about resolving references during the unpickling of the serialized F# metadata.
Consider this library project:
File1.fs:
File2.fs:
Reference this project from the following console app one:
There's an internal error when trying to use the function that uses the type:
Here's the repro project: SameNameNamespaceType.zip.