From 5d98f772e78fd9549766005d6fc62e92ce5e1cd7 Mon Sep 17 00:00:00 2001 From: Bill Wagner Date: Thu, 31 Jul 2025 10:40:12 -0400 Subject: [PATCH] fix build warning New overload resolution rules were merged at the last ECMA standard meeting. --- .../compiler-messages/array-declaration-errors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/csharp/language-reference/compiler-messages/array-declaration-errors.md b/docs/csharp/language-reference/compiler-messages/array-declaration-errors.md index b46a9b91b4dcf..05bf90416f684 100644 --- a/docs/csharp/language-reference/compiler-messages/array-declaration-errors.md +++ b/docs/csharp/language-reference/compiler-messages/array-declaration-errors.md @@ -223,7 +223,7 @@ The length of each dimension of an array must be specified as part of the array There are some types that cannot be used as the type of an array. These types include and . The type of an array can't be a `static` class, because instances of a `static` class can't be created. -You can declare arrays as [implicitly typed local variables](../statements/declarations.md#implicitly-typed-local-variables). The array must be initialized using a `new` expression. In addition, all elements in an array initializer must have a [best common type](~/_csharpstandard/standard/expressions.md#126315-finding-the-best-common-type-of-a-set-of-expressions). The following examples show how to declare an implicitly typed array: +You can declare arrays as [implicitly typed local variables](../statements/declarations.md#implicitly-typed-local-variables). The array must be initialized using a `new` expression. In addition, all elements in an array initializer must have a [best common type](~/_csharpstandard/standard/expressions.md#126316-finding-the-best-common-type-of-a-set-of-expressions). The following examples show how to declare an implicitly typed array: :::code language="csharp" source="./snippets/array-warnings/Program.cs" id="ImplicitInitializer":::