-
Notifications
You must be signed in to change notification settings - Fork 842
Description
"An implementation of the file or module '%s' has already been given"
coming from:
https://github.com/Microsoft/visualfsharp/blob/d2915e6ffa0d852cb3002199e66ef83bd2e8d1d0/src/fsharp/CompileOps.fs#L5221
File is not a module and perhaps the compiler should take into account the folder it is in.
Repro steps
Create a project and organize it using following folder structure:
/folder1/a.fs
/folder1/b.fs
/folder2/a.fs
/folder2/b.fs
This kind of organization is beneficial for modelling certain problems and having to maintain different file names is a burden.
Expected behavior
It should compile.
Actual behavior
Even if the modules/namespaces defined by these files are different the compilation will still fail with FS0239
Known workarounds
Rename the files.
Related information
- Operating system: n/a
- Branch: n/a
- .NET Runtime, CoreCLR or Mono Version: Mono 4.8 (.NET4.6)
- Editing Tools (e.g. Visual Studio Version): n/a
- Links to F# RFCs or entries on https://github.com/fsharp/fslang-suggestions: none
- Links to performance testing scripts: n/a
- Indications of severity: Minor
Metadata
Metadata
Assignees
Labels
Type
Projects
Status