Remove CS1502 page and redirect to CS1503 page#44421
Conversation
|
I like what you did here so far. I looked at the source, and So, the current version of the compiler won't ever generate this error. If possible, I'll suggest deleting cs1502, and redirecting it to cs1503, including the F1 and helpviewer keywords. If that's more work than you want for this PR, I'll merge this PR as is and create an issue to remove CS1502. |
|
Hello @BillWagner, thanks for taking a look! |
BillWagner
left a comment
There was a problem hiding this comment.
Thanks again @BartoszKlonowski
I'll
now.
This pull request closes #43993
It moves the code snippet that was implemented for CS1502 to the error page of CS1503.
Page of CS1503 has no code sample that presents the error while indeed, current code sample presents CS1503 instead of CS1502.
The only problem is that I was unable to reproduce the CS1502 to implement any code sample for the CS1502 page. I also tried to utilize code reported in other websites, but no luck, only CS1503 was given by static analysis.
I also found this:
dotnet/runtime#25176 (comment)
that says that CS1503 will be prioritized over CS1502, but I was unable to find anything else. Still, indeed I was able to reproduce the CS1502 error but only as an exception during runtime, not by error of static analysis.
Due to that, I left the CS1502 error page without a code sample.
Internal previews