Skip to content

Commit 7d4287a

Browse files
committed
more link warnings
1 parent 82a17ff commit 7d4287a

File tree

10 files changed

+21
-23
lines changed

10 files changed

+21
-23
lines changed

docs/csharp/includes/field-preview.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@ ms.date: 10/30/2024
77

88
> [!IMPORTANT]
99
>
10-
> The `field` keyword is a preview feature in C# 13. You must be using .NET 9 and set your `<LangVersion>` element to `preview` in your project file in order to use the `field` contextual keyword.
11-
>
12-
> You should be careful using the `field` keyword feature in a class that has a field named `field`. The new `field` keyword shadows a field named `field` in the scope of a property accessor. You can either change the name of the `field` variable, or use the `@` token to reference the `field` identifier as `@field`. You can learn more by reading the feature specification for [the `field` keyword](~/_csharplang/proposals/field-keyword.md).
10+
> You should be careful using the `field` keyword feature in a class that has a field named `field`. The new `field` keyword shadows a field named `field` in the scope of a property accessor. You can either change the name of the `field` variable, or use the `@` token to reference the `field` identifier as `@field`. You can learn more by reading the feature specification for [the `field` keyword](~/_csharplang/proposals/csharp-14.0/field-keyword.md).

docs/csharp/language-reference/operators/addition-operator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ A user-defined type can [overload](operator-overloading.md) the `+` operator. Wh
7272

7373
## C# language specification
7474

75-
For more information, see the [Unary plus operator](~/_csharpstandard/standard/expressions.md#1292-unary-plus-operator) and [Addition operator](~/_csharpstandard/standard/expressions.md#12105-addition-operator) sections of the [C# language specification](~/_csharpstandard/standard/README.md). For more information on overloading the compound assignment operators in C# 14 and later, see the [user defined compound assignment](~/_csharplang/proposals/user-defined-compound-assignment.md) feature specification.
75+
For more information, see the [Unary plus operator](~/_csharpstandard/standard/expressions.md#1292-unary-plus-operator) and [Addition operator](~/_csharpstandard/standard/expressions.md#12105-addition-operator) sections of the [C# language specification](~/_csharpstandard/standard/README.md). For more information on overloading the compound assignment operators in C# 14 and later, see the [user defined compound assignment](~/_csharplang/proposals/csharp-14.0/user-defined-compound-assignment.md) feature specification.
7676

7777
## See also
7878

docs/csharp/language-reference/operators/arithmetic-operators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ For more information, see the following sections of the [C# language specificati
290290
- [Compound assignment](~/_csharpstandard/standard/expressions.md#12214-compound-assignment)
291291
- [The checked and unchecked operators](~/_csharpstandard/standard/expressions.md#12820-the-checked-and-unchecked-operators)
292292
- [Numeric promotions](~/_csharpstandard/standard/expressions.md#1247-numeric-promotions)
293-
- [User defined compound assignment](~/_csharplang/proposals/user-defined-compound-assignment.md)
293+
- [User defined compound assignment](~/_csharplang/proposals/csharp-14.0/user-defined-compound-assignment.md)
294294

295295
## See also
296296

docs/csharp/language-reference/operators/assignment-operator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ If a user-defined type overloads a binary operator `op`, the `op=` operator, if
8181

8282
## C# language specification
8383

84-
For more information, see the [Assignment operators](~/_csharpstandard/standard/expressions.md#1221-assignment-operators) section of the [C# language specification](~/_csharpstandard/standard/README.md) and the [User defined compound assignment](~/_csharplang/proposals/user-defined-compound-assignment.md) feature specification.
84+
For more information, see the [Assignment operators](~/_csharpstandard/standard/expressions.md#1221-assignment-operators) section of the [C# language specification](~/_csharpstandard/standard/README.md) and the [User defined compound assignment](~/_csharplang/proposals/csharp-14.0/user-defined-compound-assignment.md) feature specification.
8585

8686
## See also
8787

docs/csharp/language-reference/operators/bitwise-and-shift-operators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ For more information, see the following sections of the [C# language specificati
201201
- [Numeric promotions](~/_csharpstandard/standard/expressions.md#1247-numeric-promotions)
202202
- [C# 11 - Relaxed shift requirements](~/_csharplang/proposals/csharp-11.0/relaxing_shift_operator_requirements.md)
203203
- [C# 11 - Logical right-shift operator](~/_csharplang/proposals/csharp-11.0/unsigned-right-shift-operator.md)
204-
- [User defined compound assignment](~/_csharplang/proposals/user-defined-compound-assignment.md)
204+
- [User defined compound assignment](~/_csharplang/proposals/csharp-14.0/user-defined-compound-assignment.md)
205205

206206
## See also
207207

docs/csharp/language-reference/operators/boolean-logical-operators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ For more information, see the following sections of the [C# language specificati
194194
- [Logical operators](~/_csharpstandard/standard/expressions.md#1213-logical-operators)
195195
- [Conditional logical operators](~/_csharpstandard/standard/expressions.md#1214-conditional-logical-operators)
196196
- [Compound assignment](~/_csharpstandard/standard/expressions.md#12214-compound-assignment)
197-
- [User defined compound assignment](~/_csharplang/proposals/user-defined-compound-assignment.md)
197+
- [User defined compound assignment](~/_csharplang/proposals/csharp-14.0/user-defined-compound-assignment.md)
198198

199199
## See also
200200

docs/csharp/language-reference/operators/subtraction-operator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ A user-defined type can [overload](operator-overloading.md) the `-` operator. Wh
6969

7070
## C# language specification
7171

72-
For more information, see the [Unary minus operator](~/_csharpstandard/standard/expressions.md#1293-unary-minus-operator) and [Subtraction operator](~/_csharpstandard/standard/expressions.md#12106-subtraction-operator) sections of the [C# language specification](~/_csharpstandard/standard/README.md). For more information on overloading the compound assignment operators in C# 14 and later, see the [user defined compound assignment](~/_csharplang/proposals/user-defined-compound-assignment.md) feature specification.
72+
For more information, see the [Unary minus operator](~/_csharpstandard/standard/expressions.md#1293-unary-minus-operator) and [Subtraction operator](~/_csharpstandard/standard/expressions.md#12106-subtraction-operator) sections of the [C# language specification](~/_csharpstandard/standard/README.md). For more information on overloading the compound assignment operators in C# 14 and later, see the [user defined compound assignment](~/_csharplang/proposals/csharp-14.0/user-defined-compound-assignment.md) feature specification.
7373

7474
## See also
7575

docs/csharp/programming-guide/classes-and-structs/partial-classes-and-methods.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ partial void OnNameChanged()
149149

150150
## C# Language Specification
151151

152-
For more information, see [Partial types](~/_csharpstandard/standard/classes.md#1527-partial-type-declarations) and [Partial methods](~/_csharpstandard/standard/classes.md#1569-partial-methods) in the [C# Language Specification](~/_csharpstandard/standard/README.md). The language specification is the definitive source for C# syntax and usage. The new features for partial members are defined in the feature specifications for [extending partial methods](~/_csharplang/proposals/csharp-9.0/extending-partial-methods.md), [partial properties and indexers](~/_csharplang/proposals/csharp-13.0/partial-properties.md), and [partial events and constructors](~/_csharplang/proposals/partial-events-and-constructors.md).
152+
For more information, see [Partial types](~/_csharpstandard/standard/classes.md#1527-partial-type-declarations) and [Partial methods](~/_csharpstandard/standard/classes.md#1569-partial-methods) in the [C# Language Specification](~/_csharpstandard/standard/README.md). The language specification is the definitive source for C# syntax and usage. The new features for partial members are defined in the feature specifications for [extending partial methods](~/_csharplang/proposals/csharp-9.0/extending-partial-methods.md), [partial properties and indexers](~/_csharplang/proposals/csharp-13.0/partial-properties.md), and [partial events and constructors](~/_csharplang/proposals/csharp-14.0/partial-events-and-constructors.md).
153153

154154
## See also
155155

docs/csharp/specification/toc.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ items:
8080
- name: "Escape sequence '\\e'"
8181
href: ../../../_csharplang/proposals/csharp-13.0/esc-escape-sequence.md
8282
- name: "Ignored directives"
83-
href: ../../../_csharplang/proposals/ignored-directives.md
83+
href: ../../../_csharplang/proposals/csharp-14.0/ignored-directives.md
8484
- name: Basic concepts
8585
items:
8686
- name: Top-level statements
@@ -120,7 +120,7 @@ items:
120120
- name: Conversions
121121
items:
122122
- name: First class span types
123-
href: ../../../_csharplang/proposals/first-class-span-types.md
123+
href: ../../../_csharplang/proposals/csharp-14.0/first-class-span-types.md
124124
- name: Patterns
125125
items:
126126
- name: Recursive pattern matching
@@ -160,7 +160,7 @@ items:
160160
- name: Optional Lambda expression parameters
161161
href: ../../../_csharplang/proposals/csharp-12.0/lambda-method-group-defaults.md
162162
- name: Simple lambda parameters with modifiers
163-
href: ../../../_csharplang/proposals/simple-lambda-parameters-with-modifiers.md
163+
href: ../../../_csharplang/proposals/csharp-14.0/simple-lambda-parameters-with-modifiers.md
164164
- name: Checked user-defined operators
165165
href: ../../../_csharplang/proposals/csharp-11.0/checked-user-defined-operators.md
166166
- name: Unsigned right-shift operator
@@ -172,13 +172,13 @@ items:
172172
- name: Extended nameof scope
173173
href: ../../../_csharplang/proposals/csharp-11.0/extended-nameof-scope.md
174174
- name: Unbound generic types in nameof
175-
href: ../../../_csharplang/proposals/unbound-generic-types-in-nameof.md
175+
href: ../../../_csharplang/proposals/csharp-14.0/unbound-generic-types-in-nameof.md
176176
- name: Overload resolution priority
177177
href: ../../../_csharplang/proposals/csharp-13.0/overload-resolution-priority.md
178178
- name: Null conditional assignment
179-
href: ../../../_csharplang/proposals/null-conditional-assignment.md
179+
href: ../../../_csharplang/proposals/csharp-14.0/null-conditional-assignment.md
180180
- name: User defined compound assignment operators
181-
href: ../../../_csharplang/proposals/user-defined-compound-assignment.md
181+
href: ../../../_csharplang/proposals/csharp-14.0/user-defined-compound-assignment.md
182182
- name: Statements
183183
items:
184184
- name: Global using directive
@@ -204,9 +204,9 @@ items:
204204
- name: Partial properties
205205
href: ../../../_csharplang/proposals/csharp-13.0/partial-properties.md
206206
- name: Partial events and constructors
207-
href: ../../../_csharplang/proposals/partial-events-and-constructors.md
207+
href: ../../../_csharplang/proposals/csharp-14.0/partial-events-and-constructors.md
208208
- name: Field backed properties
209-
href: ../../../_csharplang/proposals/field-keyword.md
209+
href: ../../../_csharplang/proposals/csharp-14.0/field-keyword.md
210210
- name: Covariant return types
211211
href: ../../../_csharplang/proposals/csharp-9.0/covariant-returns.md
212212
- name: Primary constructors
@@ -220,7 +220,7 @@ items:
220220
- name: Params collections
221221
href: ../../../_csharplang/proposals/csharp-13.0/params-collections.md
222222
- name: Extension members
223-
href: ../../../_csharplang/proposals/extensions.md
223+
href: ../../../_csharplang/proposals/csharp-14.0/extensions.md
224224
- name: Structs
225225
items:
226226
- name: Parameterless struct constructors

docs/csharp/whats-new/csharp-14.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static class Enumerable
6161

6262
The members in the first extension block are called as though they're instance members of `IEnumerable<TSource>`, for example `sequence.IsEmpty`. The members in the second extension block are called as though they're static members of `IEnumerable<TSource>`, for example `IEnumerable<int>.Identity`.
6363

64-
You can learn more details by reading the article on [extension members](../programming-guide/classes-and-structs/extension-methods.md) in the programming guide, the language reference article on the [`extension` keyword](../language-reference/keywords/extension.md), and the [feature specification](~/_csharplang/proposals/extensions.md) for the new extension members feature.
64+
You can learn more details by reading the article on [extension members](../programming-guide/classes-and-structs/extension-methods.md) in the programming guide, the language reference article on the [`extension` keyword](../language-reference/keywords/extension.md), and the [feature specification](~/_csharplang/proposals/csharp-14.0/extensions.md) for the new extension members feature.
6565

6666
## The `field` keyword
6767

@@ -102,7 +102,7 @@ C# 14 introduces first-class support for <xref:System.Span`1?displayProperty=ful
102102

103103
`Span<T>` and `ReadOnlySpan<T>` are used in many key ways in C# and the runtime. Their introduction improves performance without risking safety. C# 14 recognizes the relationship and supports some conversions between `ReadOnlySpan<T>`, `Span<T>`, and `T[]`. The span types can be extension method receivers, compose with other conversions, and help with generic type inference scenarios.
104104

105-
You can find the list of implicit span conversions in the article on [built-in types](../language-reference/builtin-types/built-in-types.md) in the language reference section. You can learn more details by reading the feature specification for [First class span types](~/_csharplang/proposals/first-class-span-types.md).
105+
You can find the list of implicit span conversions in the article on [built-in types](../language-reference/builtin-types/built-in-types.md) in the language reference section. You can learn more details by reading the feature specification for [First class span types](~/_csharplang/proposals/csharp-14.0/first-class-span-types.md).
106106

107107
## Unbound generic types and `nameof`
108108

@@ -140,7 +140,7 @@ The implementing declaration of a partial event must include `add` and `remove`
140140

141141
## User defined compound assignment
142142

143-
You can learn more in the feature specification for [user-defined compound assignment](~/_csharplang/proposals/user-defined-compound-assignment.md).
143+
You can learn more in the feature specification for [user-defined compound assignment](~/_csharplang/proposals/csharp-14.0/user-defined-compound-assignment.md).
144144

145145
## Null-conditional assignment
146146

@@ -165,7 +165,7 @@ The right side of the `=` operator is evaluated only when the left side isn't nu
165165

166166
In addition to assignment, you can use null-conditional member access operators with compound assignment operators (`+=`, `-=`, and others). However, increment and decrement, `++` and `--`, aren't allowed.
167167

168-
You can learn more in the language reference article on the [conditional member access](../language-reference/operators/member-access-operators.md#null-conditional-operators--and-) and the feature specification for [null-conditional assignment](~/_csharplang/proposals/null-conditional-assignment.md).
168+
You can learn more in the language reference article on the [conditional member access](../language-reference/operators/member-access-operators.md#null-conditional-operators--and-) and the feature specification for [null-conditional assignment](~/_csharplang/proposals/csharp-14.0/null-conditional-assignment.md).
169169

170170
## See also
171171

0 commit comments

Comments
 (0)