Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler Error CS1502 Sample Not working #43993

Open
chitangchin opened this issue Dec 17, 2024 · 0 comments
Open

Compiler Error CS1502 Sample Not working #43993

chitangchin opened this issue Dec 17, 2024 · 0 comments
Labels
doc-bug Problem with the content; needs to be fixed [org][type][category] dotnet-csharp/svc errors-warnings/subsvc okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings. Pri2

Comments

@chitangchin
Copy link

chitangchin commented Dec 17, 2024

Type of issue

Code doesn't work

Description

Code Sample in .NET Documentation does not produce CS1502 error:

// CS1502.cs  
namespace x  
{  
   public class a  
   {  
      public a(char i)  
      // try the following constructor instead  
      // public a(int i)  
      {  
      }  
  
      public static void Main()  
      {  
         a aa = new a(2222);   // CS1502  
      }  
   }  
}

CS1503 is shown instead.

Page URL

https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs1502

Content source URL

https://github.com/dotnet/docs/blob/main/docs/csharp/language-reference/compiler-messages/cs1502.md

Document Version Independent Id

6c2dac12-ba9a-4044-a93e-7cf759735f22

Article author

@BillWagner

Metadata

  • ID: ba03ad71-413b-a1bf-c759-29a575887e72
  • Service: dotnet-csharp
  • Sub-service: errors-warnings

Related Issues

@dotnetrepoman dotnetrepoman bot added the ⌚ Not Triaged Not triaged label Dec 17, 2024
@BillWagner BillWagner added the doc-bug Problem with the content; needs to be fixed [org][type][category] label Dec 18, 2024
@dotnetrepoman dotnetrepoman bot removed the ⌚ Not Triaged Not triaged label Dec 18, 2024
@dotnet-policy-service dotnet-policy-service bot added the okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings. label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-bug Problem with the content; needs to be fixed [org][type][category] dotnet-csharp/svc errors-warnings/subsvc okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings. Pri2
Projects
None yet
Development

No branches or pull requests

2 participants