-
Notifications
You must be signed in to change notification settings - Fork 842
Closed
Labels
BugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.(Internal MS Team use only) Describes an issue with limited impact on existing code.
Description
Failing example:
namespace Test
type T() =
[<CompiledName "A">]
member this.a() = ()
// ^ Fails here with:
// The 'CompiledName' attribute cannot be used with this language elementSame thing with a static member instead.
In contrast, the same code works if inside a module rather than a namespace:
module Test
type T() =
[<CompiledName "A">]
member this.a() = ()
// Succeeds and generates the expected .NET method:
// [CompilationSourceName("a")] public void A() { }Metadata
Metadata
Assignees
Labels
BugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.(Internal MS Team use only) Describes an issue with limited impact on existing code.