36 references to ERR_UnsafeMemberOperationCompat
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Unsafe.cs (1)
113
CallerUnsafeMode.Implicit => ErrorCode.
ERR_UnsafeMemberOperationCompat
,
Errors\ErrorFacts.cs (1)
2577
or ErrorCode.
ERR_UnsafeMemberOperationCompat
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (34)
UnsafeEvolutionTests.cs (34)
7063
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.M2(null)").WithArguments($"C.M2({parameterType})").WithLocation(3, 1));
7122
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.M2(null)").WithArguments("C.M2(string)").WithLocation(3, 1));
7261
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "new int*[0].M2()").WithArguments("E.M2(int*[])").WithLocation(2, 1),
7264
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "E.M2(null)").WithArguments("E.M2(int*[])").WithLocation(4, 1));
7340
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "new int*[0].M2()").WithArguments("E.extension(int*[]).M2()").WithLocation(2, 1),
7343
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "E.M2(null)").WithArguments("E.M2(int*[])").WithLocation(4, 1));
7442
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "d3.M1()").WithArguments("C.M1()").WithLocation(3, 20),
7445
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "d3.M2()").WithArguments("C.M2()").WithLocation(3, 29),
7448
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "d3.M3()").WithArguments("B.M3()").WithLocation(3, 38),
7451
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.M1()").WithArguments("C.M1()").WithLocation(4, 11),
7454
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.M2()").WithArguments("C.M2()").WithLocation(4, 19),
7457
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.M3()").WithArguments("B.M3()").WithLocation(4, 27),
7460
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "base.M1()").WithArguments("C.M1()").WithLocation(14, 31),
7463
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "base.M2()").WithArguments("C.M2()").WithLocation(14, 42),
7466
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "base.M3()").WithArguments("B.M3()").WithLocation(14, 53));
7519
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "i.M1()").WithArguments("I.M1()").WithLocation(2, 1));
7651
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.P2").WithArguments("C.P2.set").WithLocation(3, 1),
7654
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.P2").WithArguments("C.P2.get").WithLocation(3, 8));
7724
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "new int*[0].P2").WithArguments("E.extension(int*[]).P2.set").WithLocation(3, 1),
7727
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "new int*[0].P2").WithArguments("E.extension(int*[]).P2.get").WithLocation(3, 18),
7730
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "E.get_P2(null)").WithArguments("E.get_P2(int*[])").WithLocation(5, 1),
7733
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "E.set_P2(null, 0)").WithArguments("E.set_P2(int*[], int)").WithLocation(5, 17));
7816
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c2[0]").WithArguments("C2.this[int].set").WithLocation(4, 1),
7819
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c2[0]").WithArguments("C2.this[int].get").WithLocation(4, 9));
7881
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "+=").WithArguments("C.E2.add").WithLocation(3, 6));
7933
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "new C(null)").WithArguments("C.C(int*)").WithLocation(2, 5));
7992
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c -= null").WithArguments("C.operator -=(int*)").WithLocation(3, 1));
8175
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.M()").WithArguments("C.M()").WithLocation(2, 1))
8769
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c.P").WithArguments("C.P.set").WithLocation(2, 1))
8969
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c[0]").WithArguments("C.this[int].set").WithLocation(2, 1),
8972
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c[0]").WithArguments("C.this[int].get").WithLocation(2, 8))
9162
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "+=").WithArguments("C.E.add").WithLocation(1, 5))
9335
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "new C(null)").WithArguments("C.C(int*)").WithLocation(1, 5))
9505
Diagnostic(ErrorCode.
ERR_UnsafeMemberOperationCompat
, "c += null").WithArguments("C.operator +=(int*)").WithLocation(2, 1))