-
Notifications
You must be signed in to change notification settings - Fork 831
Closed
Labels
Area-Compiler-SigFileGengeneration of signature files - both compiler and IDEgeneration of signature files - both compiler and IDEBug
Milestone
Description
When generating a signature file from a nested module with attributes, the generated code does not contain any attributes for the nested module.
Repro steps
namespace MyApp.Types
[<RequireQualifiedAccess>]
[<CompilationRepresentation(CompilationRepresentationFlags.ModuleSuffix)>]
module Area =
type Meh = class endleads to
namespace MyApp.Types
module Area =
[<Class>]
type Meh =
class endExpected behaviour
The generated signature should be considered equivalent to the backing source file.
Actual behaviour
The generated code isn't valid, error in implementation:
It only complains about CompilationRepresentation - RequireQualifiedAccess does not to be there
The same thing happens with eg. AutoOpen causing unresolved symbol references in other modules.
Known workarounds
Edit signature file by hand.
Metadata
Metadata
Assignees
Labels
Area-Compiler-SigFileGengeneration of signature files - both compiler and IDEgeneration of signature files - both compiler and IDEBug
Type
Projects
Status
Done
