dotnet / fsharp

The F# compiler, F# core library, F# language service, and F# tooling integration for Visual Studio
https://dotnet.microsoft.com/languages/fsharp
MIT License
3.88k stars 783 forks source link

Language Service does not show FS0247 error #6035

Open cartermp opened 5 years ago

cartermp commented 5 years ago

Using 16.0, but also reproduces in 15.9

  1. Create a new project
  2. Replace the contents of the first file with this:
namespace A

    module B = begin end
  1. Create a new file and replace its contents with this:
namespace A.B

    type DU =
        | X of float
        | Y of float

Expected:

Actual:

bmitc commented 2 years ago

Just adding that I have come across this as well. :) For whatever reason, I've never had this issue before (probably just luck in naming), but I came across it today and was confused why it was only coming up during the build step.