45 references to ERR_CallerUnsafeImplicitlyImplementingSafe
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
2578
or ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
Symbols\TypeSymbol.cs (2)
1803
isExplicit ? ErrorCode.ERR_CallerUnsafeExplicitlyImplementingSafe : ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
,
1909
isExplicit ? ErrorCode.ERR_CallerUnsafeExplicitlyImplementingSafe : ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
,
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (42)
UnsafeEvolutionTests.cs (42)
3518
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "M2").WithArguments("C3.M2()", "I1.M2()").WithLocation(14, 17),
3524
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "M1").WithArguments("C5.M1()", "I2.M1()").WithLocation(28, 17),
3527
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "M2").WithArguments("C5.M2()", "I1.M2()").WithLocation(30, 17),
3530
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "M1").WithArguments("C6.M1()", "I2.M1()").WithLocation(36, 17),
3533
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "M2").WithArguments("C6.M2()", "I1.M2()").WithLocation(38, 17),
3539
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "M1").WithArguments("C3.M1()", "I1.M1()").WithLocation(12, 17),
3542
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "M2").WithArguments("C3.M2()", "I1.M2()").WithLocation(14, 17),
3551
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "M1").WithArguments("C5.M1()", "I1.M1()").WithLocation(28, 17),
3554
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "M1").WithArguments("C5.M1()", "I2.M1()").WithLocation(28, 17),
3557
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "M2").WithArguments("C5.M2()", "I1.M2()").WithLocation(30, 17),
3560
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "M2").WithArguments("C5.M2()", "I2.M2()").WithLocation(30, 17),
3563
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "M1").WithArguments("C6.M1()", "I2.M1()").WithLocation(36, 17),
3566
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "M1").WithArguments("C6.M1()", "I1.M1()").WithLocation(36, 17),
3569
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "M2").WithArguments("C6.M2()", "I2.M2()").WithLocation(38, 17),
3572
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "M2").WithArguments("C6.M2()", "I1.M2()").WithLocation(38, 17),
3681
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "M1").WithArguments("B2.M1()", "I.M1()").WithLocation(14, 25),
3690
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "M1").WithArguments("C2.M1()", "I.M1()").WithLocation(28, 26),
3699
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "M1").WithArguments("B2.M1()", "I.M1()").WithLocation(14, 25),
3708
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "M1").WithArguments("C2.M1()", "I.M1()").WithLocation(28, 26),
3801
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "OnCompleted").WithArguments("C.OnCompleted(System.Action)", "System.Runtime.CompilerServices.INotifyCompletion.OnCompleted(System.Action)").WithLocation(13, 17));
4363
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "Dispose").WithArguments("C.Dispose()", "System.IDisposable.Dispose()").WithLocation(7, 17));
5325
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "set").WithArguments("C1.P2.set", "I.P2.set").WithLocation(10, 26),
5328
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "get").WithArguments("C1.P3.get", "I.P3.get").WithLocation(11, 70),
5331
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "get").WithArguments("C2.P3.get", "I.P3.get").WithLocation(20, 21),
5334
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "set").WithArguments("C2.P3.set", "I.P3.set").WithLocation(20, 26),
5340
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "get").WithArguments("C1.P2.get", "I.P2.get").WithLocation(10, 21),
5343
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "set").WithArguments("C1.P2.set", "I.P2.set").WithLocation(10, 26),
5346
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "get").WithArguments("C1.P3.get", "I.P3.get").WithLocation(11, 70),
5349
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "get").WithArguments("C2.P1.get", "I.P1.get").WithLocation(17, 21),
5352
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "set").WithArguments("C2.P1.set", "I.P1.set").WithLocation(17, 26),
5355
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "get").WithArguments("C2.P2.get", "I.P2.get").WithLocation(18, 70),
5358
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "get").WithArguments("C2.P3.get", "I.P3.get").WithLocation(20, 21),
5361
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "set").WithArguments("C2.P3.set", "I.P3.set").WithLocation(20, 26),
5763
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "E2").WithArguments("C1.E2", "I.E2").WithLocation(11, 32),
5766
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "E2").WithArguments("C2.E2", "I.E2").WithLocation(18, 32),
5772
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "E2").WithArguments("C1.E2", "I.E2").WithLocation(11, 32),
5775
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "E2").WithArguments("C2.E2", "I.E2").WithLocation(18, 32),
5778
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "E1").WithArguments("C3.E1", "I.E1").WithLocation(24, 32),
5781
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "E1").WithArguments("C4.E1", "I.E1").WithLocation(31, 32),
7739
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "M2").WithArguments("C5.M2()", "I.M2()").WithLocation(33, 24),
7748
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "M1").WithArguments("C5.M1()", "I.M1()").WithLocation(32, 24),
7751
Diagnostic(ErrorCode.
ERR_CallerUnsafeImplicitlyImplementingSafe
, "M2").WithArguments("C5.M2()", "I.M2()").WithLocation(33, 24),