Skip to content

error: duplicate entry '.cctor' in method table #19187

Description

@ingted

Please provide a succinct description of the issue.

Repro steps
type U<'T> = | A static member val X = 3
Expected behavior

Per #18767, this should be fixed, however it still exists.

Actual behavior

Image

Known workarounds

Still
``

type U<'T> =
| A of unit
static member val X = 3
;;
type U<'T> =
| A of unit
static member X: int

``

Related information

Provide any related information (optional):

  • Operating system
  • .NET Runtime kind (.NET Core, .NET Framework, Mono) .net 9.0.100 and after, 10.0.101
  • Editing Tools (e.g. Visual Studio Version, Visual Studio) dotnet fsi & (netfx) fsiAnyCpu.exe

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions