36 references to ERR_UnsafeMemberOperationCompat
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Unsafe.cs (1)
33
CallerUnsafeMode.Implicit => ErrorCode.
ERR_UnsafeMemberOperationCompat
,
Errors\ErrorFacts.cs (1)
2576
or ErrorCode.
ERR_UnsafeMemberOperationCompat
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (34)
UnsafeEvolutionTests.cs (34)
6307
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.M2(null)").WithArguments($"C.M2({parameterType})").WithLocation(3, 1));
6366
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.M2(null)").WithArguments("C.M2(string)").WithLocation(3, 1));
6505
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "new int*[0].M2()").WithArguments("E.M2(int*[])").WithLocation(2, 1),
6508
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "E.M2(null)").WithArguments("E.M2(int*[])").WithLocation(4, 1));
6584
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "new int*[0].M2()").WithArguments("E.extension(int*[]).M2()").WithLocation(2, 1),
6587
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "E.M2(null)").WithArguments("E.M2(int*[])").WithLocation(4, 1));
6686
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "d3.M1()").WithArguments("C.M1()").WithLocation(3, 20),
6689
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "d3.M2()").WithArguments("C.M2()").WithLocation(3, 29),
6692
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "d3.M3()").WithArguments("B.M3()").WithLocation(3, 38),
6695
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.M1()").WithArguments("C.M1()").WithLocation(4, 11),
6698
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.M2()").WithArguments("C.M2()").WithLocation(4, 19),
6701
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.M3()").WithArguments("B.M3()").WithLocation(4, 27),
6704
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "base.M1()").WithArguments("C.M1()").WithLocation(14, 31),
6707
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "base.M2()").WithArguments("C.M2()").WithLocation(14, 42),
6710
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "base.M3()").WithArguments("B.M3()").WithLocation(14, 53));
6763
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "i.M1()").WithArguments("I.M1()").WithLocation(2, 1));
6895
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.P2").WithArguments("C.P2.set").WithLocation(3, 1),
6898
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.P2").WithArguments("C.P2.get").WithLocation(3, 8));
6968
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "new int*[0].P2").WithArguments("E.extension(int*[]).P2.set").WithLocation(3, 1),
6971
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "new int*[0].P2").WithArguments("E.extension(int*[]).P2.get").WithLocation(3, 18),
6974
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "E.get_P2(null)").WithArguments("E.get_P2(int*[])").WithLocation(5, 1),
6977
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "E.set_P2(null, 0)").WithArguments("E.set_P2(int*[], int)").WithLocation(5, 17));
7060
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c2[0]").WithArguments("C2.this[int].set").WithLocation(4, 1),
7063
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c2[0]").WithArguments("C2.this[int].get").WithLocation(4, 9));
7125
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "+=").WithArguments("C.E2.add").WithLocation(3, 6));
7177
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "new C(null)").WithArguments("C.C(int*)").WithLocation(2, 5));
7236
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c -= null").WithArguments("C.operator -=(int*)").WithLocation(3, 1));
7408
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.M()").WithArguments("C.M()").WithLocation(2, 1))
7980
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.P").WithArguments("C.P.set").WithLocation(2, 1))
8168
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c[0]").WithArguments("C.this[int].set").WithLocation(2, 1),
8171
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c[0]").WithArguments("C.this[int].get").WithLocation(2, 8))
8349
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "+=").WithArguments("C.E.add").WithLocation(1, 5))
8510
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "new C(null)").WithArguments("C.C(int*)").WithLocation(1, 5))
8668
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c += null").WithArguments("C.operator +=(int*)").WithLocation(2, 1))