-
Notifications
You must be signed in to change notification settings - Fork 832
Closed
Description
Not sure if it's a real problem though.
Repro steps
Project file:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<OtherFlags>$(OtherFlags) --test:GraphBasedChecking</OtherFlags>
</PropertyGroup>
<ItemGroup>
<Compile Include="File1.fs" />
<Compile Include="File2.fs" />
<Compile Include="Program.fs"/>
</ItemGroup>
</Project>File1:
namespace My.Great.NamespaceFile2:
namespace My.Great.Namespace
open My.Great.Namespace
type Foo = class endProgram:
printfn "Hello"Compilation fails with error
1>File2.fs(3,6): Error FS0039 : The namespace or module 'My' is not defined.
But with commented out <OtherFlags> line compilation is successful.
NamespaceIsNotDefRepro.zip
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done