8 references to ERR_TupleElementNameMismatch
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Patterns.cs (1)
1311diagnostics.Add(ErrorCode.ERR_TupleElementNameMismatch, node.Location, name, $"Item{tupleIndex + 1}");
Errors\ErrorFacts.cs (1)
1933or ErrorCode.ERR_TupleElementNameMismatch
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Semantics\PatternMatchingTests2.cs (4)
1560Diagnostic(ErrorCode.ERR_TupleElementNameMismatch, "c").WithArguments("c", "Item1").WithLocation(7, 19), 1563Diagnostic(ErrorCode.ERR_TupleElementNameMismatch, "d").WithArguments("d", "Item2").WithLocation(7, 25) 1587Diagnostic(ErrorCode.ERR_TupleElementNameMismatch, "a").WithArguments("a", "Item2").WithLocation(7, 25) 1842Diagnostic(ErrorCode.ERR_TupleElementNameMismatch, "Item2").WithArguments("Item2", "Item1").WithLocation(7, 19)
Semantics\PatternMatchingTests3.cs (2)
338Diagnostic(ErrorCode.ERR_TupleElementNameMismatch, "X").WithArguments("X", "Item1").WithLocation(8, 33), 341Diagnostic(ErrorCode.ERR_TupleElementNameMismatch, "Y").WithArguments("Y", "Item2").WithLocation(8, 39)