Skip to content

CS0436: Request for details on what actually constitutes a "conflict" #47460

@RexJaeschke

Description

@RexJaeschke

Type of issue

Missing information

Description

I'm working on the Ecma C# spec and just got this error on a test program. However, I don't find a useful explanation here.

Looking at your two type declarations for A they appear to vary only by the spelling of one source token, the string literal. If that is the conflict, please say so, and if there are any other kinds of conflicts possible in other scenarios, I'd like to know about them as well. Perhaps the types need to be syntactically and semantically equivalent/identical!

[Enter feedback here]

Page URL

https://learn.microsoft.com/en-us/dotnet/csharp/misc/cs0436?f1url=%3FappId%3Droslyn%26k%3Dk(CS0436)

Content source URL

https://github.com/dotnet/docs/blob/main/docs/csharp/misc/cs0436.md

Document Version Independent Id

b320743f-f0ef-2174-df91-f0ddbb612e88

Platform Id

d0bdb84e-52a8-9c98-dfe6-76f4af3d5ea3

Article author

@BillWagner

Metadata

  • ID: 6493b5de-9d48-3a99-e213-06fdb121e067
  • PlatformId: d0bdb84e-52a8-9c98-dfe6-76f4af3d5ea3
  • Service: dotnet-csharp
  • Sub-service: errors-warnings

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions