// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
@@ -3103,15 +3103,6 @@ internal class CSharpResources {
}
}
/// <summary>
/// Looks up a localized string similar to The type information on the left-hand-side '{0}' and right-hand-side '{1}' of the deconstruction was insufficient to infer a merged type..
<value>The type information on the left-hand-side '{0}' and right-hand-side '{1}' of the deconstruction was insufficient to infer a merged type.</value>
// (6,9): error CS8130: The type information on the left-hand-side 'x2' and right-hand-side 'null' of the deconstruction was insufficient to infer a merged type.
// (6,14): error CS8130: Cannot infer the type of implicitly-typed deconstruction variable 'x1'.
// (6,9): error CS8130: The type information on the left-hand-side 'x3' and right-hand-side 'null' of the deconstruction was insufficient to infer a merged type.
// (6,35): error CS8130: Cannot infer the type of implicitly-typed deconstruction variable 'x3'.
// (string x1, (byte x2, var x3), var x4) = (null, (2, null), null);
Diagnostic(ErrorCode.ERR_DeconstructCouldNotInferMergedType,"(string x1, (byte x2, var x3), var x4) = (null, (2, null), null);").WithArguments("x3","null").WithLocation(6,9),
// (6,9): error CS8130: The type information on the left-hand-side 'x4' and right-hand-side 'null' of the deconstruction was insufficient to infer a merged type.
// (6,9): error CS8130: The type information on the left-hand-side 'x2' and right-hand-side '(null, 2)' of the deconstruction was insufficient to infer a merged type.
// (6,25): error CS8130: Cannot infer the type of implicitly-typed deconstruction variable 'x2'.
// (string x1, var x2) = (null, (null, 2));
Diagnostic(ErrorCode.ERR_DeconstructCouldNotInferMergedType,"(string x1, var x2) = (null, (null, 2));").WithArguments("x2","(null, 2)").WithLocation(6,9)
// (9,21): error CS1061: 'int' does not contain a definition for 'Deconstruct' and no extension method 'Deconstruct' accepting a first argument of type 'int' could be found (are you missing a using directive or an assembly reference?)
// (6,34): error CS1579: foreach statement cannot operate on variables of type 'int' because 'int' does not contain a public definition for 'GetEnumerator'