You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Misleading error when a type and a namespace share the same name #17827
Area-Diagnosticsmistakes and possible improvements to diagnosticsBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.
There's a name collision between the namespace in the first file and the type in the second one, and there's an error building this project. However, the error is misleading:
File1.fs(1,14): Error FS0247 :
A namespace and a module named 'Ns.TypeName' both occur in two parts of this assembly
When trying to investigate such an error, you try to find a module TypeName, but there's none, so it's quite hard to diagnose on bigger projects.
Area-Diagnosticsmistakes and possible improvements to diagnosticsBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.
Activity