Skip to content

nameof on operators still yields the compiled name on .NET 5 RC #10143

@cartermp

Description

@cartermp

With.NET 5 RC1:

dotnet fsi --langversion:preview
nameof (+)
  val it: "op_Addition"

It is the same in a compiled project.

As per the spec, this is incorrect: https://github.com/fsharp/fslang-design/blob/master/preview/FS-1003-nameof-operator.md#names-of-operators-reveal-the-name-of-the-symbol-in-source

We supposedly test this here: https://github.com/dotnet/fsharp/blob/main/tests/fsharp/core/nameof/preview/test.fsx#L241

Why no worky?

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugImpact-High(Internal MS Team use only) Describes an issue with extreme impact on existing code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions