Skip to content

Commit 2fc1496

Browse files
BillWagnerCopilot
andauthored
Add final error codes added in C# 14 (#49884)
* Skeleton and first consolidation * Consolidate related errors Consolidate all related errors for type arguments and type parameters. * Organize around themes * First edit pass on themes. * Second edit pass * Final edit pass * Fix build issues. * one more bad link * Apply suggestions from code review Co-authored-by: Copilot <[email protected]> * fixes from Copilot review * why copilit, why? * revert --------- Co-authored-by: Copilot <[email protected]>
1 parent a236935 commit 2fc1496

25 files changed

+284
-872
lines changed

.github/prompts/error-consolidation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Overall steps:
1212

1313
We're going to work through a series of files consolidating errors and warnings.
1414

15-
- For the duration of this chat, all references to "destination file" refer to `explicit-interface-errors.md`.
16-
- For the duration of this chat, all references to "the target theme" refer to errors and warnings related to members that explicitly implement an interface member.
15+
- For the duration of this chat, all references to "destination file" refer to `generic-type-parameters-errors.md`.
16+
- For the duration of this chat, all references to "the target theme" refer to errors and warnings related to generic type parameters and generic type arguments.
1717

1818
The destination file already contains a skeleton for the final output.
1919

@@ -64,7 +64,7 @@ Understand these instructions, then suggest a list of themes and the included er
6464

6565
## Move from description to resolution
6666

67-
Rework the highlighted section so the focus is on how to correct each error. This article doesn't need to explain the associated language feature. Instead, in each section, provide links to language reference or language specification material that explains the rules violated when these diagnostics appear. Add explanatory context after each correction (in parentheses with the error code). Provided brief reasons why each correction is needed. Use detailed, sentence-style explanations rather than brief imperative statements. For each recommendation put the affectived error codes in parentheses, and in **bold** style. Remove extensive examples.
67+
Rework the highlighted section so the focus is on how to correct each error. This article doesn't need to explain the associated language feature. Instead, in each section, provide links to language reference or language specification material that explains the rules violated when these diagnostics appear. Add explanatory context after each correction (in parentheses with the error code). Provided brief reasons why each correction is needed. Use detailed, sentence-style explanations rather than brief imperative statements. For each recommendation put the affectived error codes in parentheses, and in **bold** style. Remove extensive examples. Remove all H3 headings in this section. If any errors are no longer produced in the latest version of C#, make a note of that.
6868

6969
## Verify error messages
7070

.openpublishing.redirection.csharp.json

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,105 @@
11
{
22
"redirections": [
3+
{
4+
"source_path_from_root": "/docs/csharp/misc/cs0080.md",
5+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/generic-type-parameters-errors",
6+
"redirect_document_id": false
7+
},
8+
{
9+
"source_path_from_root": "/docs/csharp/misc/cs0081.md",
10+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/generic-type-parameters-errors",
11+
"redirect_document_id": false
12+
},
13+
{
14+
"source_path_from_root": "/docs/csharp/misc/cs0305.md",
15+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/generic-type-parameters-errors",
16+
"redirect_document_id": false
17+
},
18+
{
19+
"source_path_from_root": "/docs/csharp/misc/cs0306.md",
20+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/generic-type-parameters-errors",
21+
"redirect_document_id": false
22+
},
23+
{
24+
"source_path_from_root": "/docs/csharp/misc/cs0307.md",
25+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/generic-type-parameters-errors",
26+
"redirect_document_id": false
27+
},
28+
{
29+
"source_path_from_root": "/docs/csharp/misc/cs0308.md",
30+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/generic-type-parameters-errors",
31+
"redirect_document_id": false
32+
},
33+
{
34+
"source_path_from_root": "/docs/csharp/misc/cs0312.md",
35+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/generic-type-parameters-errors",
36+
"redirect_document_id": false
37+
},
38+
{
39+
"source_path_from_root": "/docs/csharp/misc/cs0313.md",
40+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/generic-type-parameters-errors",
41+
"redirect_document_id": false
42+
},
43+
{
44+
"source_path_from_root": "/docs/csharp/misc/cs0314.md",
45+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/generic-type-parameters-errors",
46+
"redirect_document_id": false
47+
},
48+
{
49+
"source_path_from_root": "/docs/csharp/misc/cs0315.md",
50+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/generic-type-parameters-errors",
51+
"redirect_document_id": false
52+
},
53+
{
54+
"source_path_from_root": "/docs/csharp/misc/cs0403.md",
55+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/generic-type-parameters-errors",
56+
"redirect_document_id": false
57+
},
58+
{
59+
"source_path_from_root": "/docs/csharp/misc/cs0412.md",
60+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/generic-type-parameters-errors",
61+
"redirect_document_id": false
62+
},
63+
{
64+
"source_path_from_root": "/docs/csharp/misc/cs0694.md",
65+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/generic-type-parameters-errors",
66+
"redirect_document_id": false
67+
},
68+
{
69+
"source_path_from_root": "/docs/csharp/misc/cs0695.md",
70+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/generic-type-parameters-errors",
71+
"redirect_document_id": false
72+
},
73+
{
74+
"source_path_from_root": "/docs/csharp/misc/cs0698.md",
75+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/generic-type-parameters-errors",
76+
"redirect_document_id": false
77+
},
78+
{
79+
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs0304.md",
80+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/generic-type-parameters-errors",
81+
"redirect_document_id": false
82+
},
83+
{
84+
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs0310.md",
85+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/generic-type-parameters-errors",
86+
"redirect_document_id": false
87+
},
88+
{
89+
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs0311.md",
90+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/generic-type-parameters-errors",
91+
"redirect_document_id": false
92+
},
93+
{
94+
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs0413.md",
95+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/generic-type-parameters-errors",
96+
"redirect_document_id": false
97+
},
98+
{
99+
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs0417.md",
100+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/generic-type-parameters-errors",
101+
"redirect_document_id": false
102+
},
3103
{
4104
"source_path_from_root": "/redirections/proposals/csharp-7.0/binary-literals.md",
5105
"redirect_url": "/dotnet/csharp/language-reference/language-specification/lexical-structure#6453-integer-literals"

docs/csharp/language-reference/compiler-messages/cs0304.md

Lines changed: 0 additions & 66 deletions
This file was deleted.

docs/csharp/language-reference/compiler-messages/cs0310.md

Lines changed: 0 additions & 51 deletions
This file was deleted.

docs/csharp/language-reference/compiler-messages/cs0311.md

Lines changed: 0 additions & 45 deletions
This file was deleted.

docs/csharp/language-reference/compiler-messages/cs0413.md

Lines changed: 0 additions & 45 deletions
This file was deleted.

docs/csharp/language-reference/compiler-messages/cs0417.md

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)