Internal error when using a type with collided name from another project
- Dominant language
- F#
- Stars
- 4.3k
- Forks
- 876
- Avg merge
- 4d 22h
- Merged PRs (30d)
- 144
Description
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:
```fsharp
namespace Ns.TypeName
```
File2.fs:
```fsharp
namespace Ns
type TypeName = { Field: int }
module Module =
let f (tn: TypeName) = ()
```
Reference this project from the following console app one:
```Program.fs
module Ns.Another
Module.f null
```
There's an internal error when trying to use the function that uses the type:
Here's the repro project: [SameNameNamespaceType.zip](https://github.com/user-attachments/files/17221650/SameNameNamespaceType.zip).
Contributor guide
Assessment
This issue has not been assessed yet.