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
Let's say we have an F# project consistent of two files (this is the minimum to be able reproduce this):
File A.fs:
namespaceProjecttypeDU= A | B
File B.fs:
namespaceProjecttypeB={ Prop :DU }
This compiles fine. If you now want to test this on a script file:
#load "A.fs"
#load "B.fs"
If you evaluate this, you'l get this error:
[Loading c:\users\guguer\documents\visual studio 2013\Projects\ConsoleApplication2\A.fs]namespaceFSI_0002.ProjecttypeDU=| A
| B
>[Loading c:\users\guguer\documents\visual studio 2013\Projects\ConsoleApplication2\B.fs]
B.fs(3,19): error FS0039: The type'DU'isnotdefined>
There is a workaround, which is to include open Project on B.fs, but it's not obvious. On big projects, and for new users, this is a stumbling block that makes things look broken.
Similar issues happen with modules instead of namespaces.
The text was updated successfully, but these errors were encountered:
Opened at CodePlex by ovatsus
[from https://github.com/fsharp/fsharp/issues/278](from fsharp/fsharp#278)
Let's say we have an F# project consistent of two files (this is the minimum to be able reproduce this):
File A.fs:
File B.fs:
This compiles fine. If you now want to test this on a script file:
If you evaluate this, you'l get this error:
There is a workaround, which is to include open Project on B.fs, but it's not obvious. On big projects, and for new users, this is a stumbling block that makes things look broken.
Similar issues happen with modules instead of namespaces.
The text was updated successfully, but these errors were encountered: