18 references to ERR_SwitchExpressionNoBestType
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
294diagnostics.Add(ErrorCode.ERR_SwitchExpressionNoBestType, exprSyntax.SwitchKeyword.GetLocation());
Errors\ErrorFacts.cs (1)
1867case ErrorCode.ERR_SwitchExpressionNoBestType:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\PatternTests.cs (1)
5409Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(7, 15)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Semantics\PatternMatchingTests2.cs (2)
608Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(5, 19)); 2872Diagnostic(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)
6149Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(4, 29) 6384Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(4, 29)
Semantics\NullableReferenceTypesTests.cs (1)
84815Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(7, 12),
Semantics\NullableReferenceTypesVsPatterns.cs (2)
1975Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(33, 15), 1978Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(34, 15),
Semantics\RawInterpolationTests_Handler.cs (2)
4429Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(4, 29)); 4663Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(4, 29));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Parsing\PatternParsingTests.cs (1)
2471Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(1, 32));
Parsing\StatementAttributeParsingTests.cs (1)
6274Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").WithLocation(6, 14));