36 references to ERR_UnsafeMemberOperationCompat
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Unsafe.cs (1)
115
CallerUnsafeMode.Implicit => ErrorCode.
ERR_UnsafeMemberOperationCompat
,
Errors\ErrorFacts.cs (1)
2578
or ErrorCode.
ERR_UnsafeMemberOperationCompat
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (34)
UnsafeEvolutionTests.cs (34)
8114
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.M2(null)").WithArguments($"C.M2({parameterType})").WithLocation(3, 1));
8185
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.M2(null)").WithArguments("C.M2(string)").WithLocation(3, 1));
8336
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "new int*[0].M2()").WithArguments("E.M2(int*[])").WithLocation(2, 1),
8339
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "E.M2(null)").WithArguments("E.M2(int*[])").WithLocation(4, 1));
8427
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "new int*[0].M2()").WithArguments("E.extension(int*[]).M2()").WithLocation(2, 1),
8430
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "E.M2(null)").WithArguments("E.M2(int*[])").WithLocation(4, 1));
8541
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "d3.M1()").WithArguments("C.M1()").WithLocation(3, 20),
8544
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "d3.M2()").WithArguments("C.M2()").WithLocation(3, 29),
8547
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "d3.M3()").WithArguments("B.M3()").WithLocation(3, 38),
8550
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.M1()").WithArguments("C.M1()").WithLocation(4, 11),
8553
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.M2()").WithArguments("C.M2()").WithLocation(4, 19),
8556
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.M3()").WithArguments("B.M3()").WithLocation(4, 27),
8559
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "base.M1()").WithArguments("C.M1()").WithLocation(14, 31),
8562
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "base.M2()").WithArguments("C.M2()").WithLocation(14, 42),
8565
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "base.M3()").WithArguments("B.M3()").WithLocation(14, 53));
8618
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "i.M1()").WithArguments("I.M1()").WithLocation(2, 1));
8774
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.P2").WithArguments("C.P2.set").WithLocation(3, 1),
8777
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.P2").WithArguments("C.P2.get").WithLocation(3, 8));
8859
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "new int*[0].P2").WithArguments("E.extension(int*[]).P2.set").WithLocation(3, 1),
8862
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "new int*[0].P2").WithArguments("E.extension(int*[]).P2.get").WithLocation(3, 18),
8865
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "E.get_P2(null)").WithArguments("E.get_P2(int*[])").WithLocation(5, 1),
8868
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "E.set_P2(null, 0)").WithArguments("E.set_P2(int*[], int)").WithLocation(5, 17));
8963
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c2[0]").WithArguments("C2.this[int].set").WithLocation(4, 1),
8966
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c2[0]").WithArguments("C2.this[int].get").WithLocation(4, 9));
9040
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "+=").WithArguments("C.E2.add").WithLocation(3, 6));
9104
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "new C(null)").WithArguments("C.C(int*)").WithLocation(2, 5));
9175
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c -= null").WithArguments("C.operator -=(int*)").WithLocation(3, 1));
9366
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.M()").WithArguments("C.M()").WithLocation(2, 1))
9968
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.P").WithArguments("C.P.set").WithLocation(2, 1))
10176
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c[0]").WithArguments("C.this[int].set").WithLocation(2, 1),
10179
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c[0]").WithArguments("C.this[int].get").WithLocation(2, 8))
10369
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "+=").WithArguments("C.E.add").WithLocation(1, 5))
10550
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "new C(null)").WithArguments("C.C(int*)").WithLocation(1, 5))
10728
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c += null").WithArguments("C.operator +=(int*)").WithLocation(2, 1))