18 references to ERR_UnreachableCatch
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Statements.cs (1)
3204
Error(diagnostics, ErrorCode.
ERR_UnreachableCatch
, declaration.Type, previousType);
Errors\ErrorFacts.cs (1)
685
case ErrorCode.
ERR_UnreachableCatch
:
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_TryCatch.cs (1)
378
Diagnostic(ErrorCode.
ERR_UnreachableCatch
, "System.IO.IOException").WithArguments("System.IO.IOException").WithLocation(12, 16),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (15)
Semantics\SemanticErrorTests.cs (15)
4599
Diagnostic(ErrorCode.
ERR_UnreachableCatch
, "System.Exception").WithArguments("object").WithLocation(10, 16),
5506
Diagnostic(ErrorCode.
ERR_UnreachableCatch
, "C").WithArguments("System.IO.IOException").WithLocation(19, 16),
5507
Diagnostic(ErrorCode.
ERR_UnreachableCatch
, "B").WithArguments("A").WithLocation(23, 16),
5508
Diagnostic(ErrorCode.
ERR_UnreachableCatch
, "StackOverflowException").WithArguments("System.Exception").WithLocation(24, 16),
5509
Diagnostic(ErrorCode.
ERR_UnreachableCatch
, "F<int>").WithArguments("F<int>").WithLocation(25, 16),
5510
Diagnostic(ErrorCode.
ERR_UnreachableCatch
, "F<float>").WithArguments("System.Exception").WithLocation(26, 16));
5537
Diagnostic(ErrorCode.
ERR_UnreachableCatch
, "B").WithArguments("A").WithLocation(15, 16));
5896
Diagnostic(ErrorCode.
ERR_UnreachableCatch
, "EG<dynamic>").WithArguments("EG<object>"));
5928
Diagnostic(ErrorCode.
ERR_UnreachableCatch
, "T").WithArguments("EA"));
5968
Diagnostic(ErrorCode.
ERR_UnreachableCatch
, "V").WithArguments("EG<dynamic>"),
5970
Diagnostic(ErrorCode.
ERR_UnreachableCatch
, "U").WithArguments("EG<dynamic>"));
6054
Diagnostic(ErrorCode.
ERR_UnreachableCatch
, "V").WithArguments("EG<object>"),
6056
Diagnostic(ErrorCode.
ERR_UnreachableCatch
, "U").WithArguments("EG<object>"));
21441
Diagnostic(ErrorCode.
ERR_UnreachableCatch
, "System.IO.IOException").WithArguments("System.Exception").WithLocation(7, 16),
23856
Diagnostic(ErrorCode.
ERR_UnreachableCatch
, "T").WithArguments("S").WithLocation(14, 15),