20 references to ERR_SwitchExpressionNoBestType
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
302diagnostics.Add(ErrorCode.ERR_SwitchExpressionNoBestType, exprSyntax.SwitchKeyword.GetLocation());
Errors\ErrorFacts.cs (1)
1924or ErrorCode.ERR_SwitchExpressionNoBestType
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\PatternTests.cs (1)
5400Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(7, 15)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Semantics\CollectionExpressionTests.cs (1)
594Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(13, 21),
Semantics\ExtensionTests.cs (1)
42802Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(5, 4),
Semantics\PatternMatchingTests2.cs (2)
604Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(5, 19)); 2855Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(11, 15),
Semantics\PatternMatchingTests3.cs (2)
993Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(6, 18)); 1330Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(6, 27)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_ISwitchExpression.cs (1)
319Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(7, 29)
IOperation\IOperationTests_ISwitchOperation.cs (1)
3349Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(6, 19)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\InterpolationTests.cs (2)
6186Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(4, 29) 6424Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(4, 29)
Semantics\NullableReferenceTypesTests.cs (1)
88504Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(7, 12),
Semantics\NullableReferenceTypesVsPatterns.cs (2)
1972Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(33, 15), 1975Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(34, 15),
Semantics\RawInterpolationTests_Handler.cs (2)
4436Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(4, 29)); 4673Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(4, 29));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Parsing\PatternParsingTests.cs (1)
2459Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(1, 32));
Parsing\StatementAttributeParsingTests.cs (1)
6286Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(6, 14));