This one always gets me, and I fail to understand the problem the F# compiler is having here.
I have two files for two modules.
A.fs:
module A
//rest of the module goes here
B.fs
module A.B
//rest of the module goes here
When I build this project, I get:
A.fs(1, 8): [FS0247] A namespace and a module named 'A' both occur in two parts of this assembly
Why? There is nothing else in the project, other than the Program.fs. Am I wrong to assume I can break down modules into multiple files to keep things under control, while using a namespace like naming scheme? (obviously the compiler thinks so).
I want to understand the problem the compiler is having here and why I'm presented an error that refers to namespaces, even though I have no namespace declarations in my code.