23 references to ERR_RefReturnReadonlyNotField
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.ValueChecks.cs (1)
2871
ErrorCode.
ERR_RefReturnReadonlyNotField
,
Errors\ErrorFacts.cs (1)
1790
case ErrorCode.
ERR_RefReturnReadonlyNotField
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
CodeGen\CodeGenFunctionPointersTests.cs (1)
11012
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField
, "ptr(ref i)").WithArguments("method", "delegate*<ref int, ref readonly int>").WithLocation(8, 16)
CodeGen\CodeGenInParametersTests.cs (3)
1183
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField
, "arg1").WithArguments("variable", "arg1").WithLocation(18, 20),
1274
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField
, "arg1").WithArguments("variable", "arg1").WithLocation(10, 24),
1393
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField
, "arg11").WithArguments("variable", "arg11").WithLocation(12, 28),
CodeGen\CodeGenRefReadonlyReturnTests.cs (2)
750
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField
, "M()").WithArguments("method", "M").WithLocation(12, 28),
756
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField
, "P").WithArguments("property", "P").WithLocation(23, 28),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (15)
Semantics\RefFieldTests.cs (12)
7282
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField
, "t").WithArguments("variable", "t").WithLocation(6, 39),
7341
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField
, "F").WithArguments("field", "F").WithLocation(4, 30),
7344
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField
, "s.F").WithArguments("field", "F").WithLocation(9, 39),
7347
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField
, "s.F").WithArguments("field", "F").WithLocation(10, 43),
7350
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField
, "s.F").WithArguments("field", "F").WithLocation(11, 62),
7353
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField
, "s.F").WithArguments("field", "F").WithLocation(12, 42));
7406
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField
, "F").WithArguments("field", "F").WithLocation(4, 30),
7409
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField
, "s.F").WithArguments("field", "F").WithLocation(9, 39),
7412
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField
, "s.F").WithArguments("field", "F").WithLocation(10, 43),
7415
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField
, "s.F").WithArguments("field", "F").WithLocation(11, 62),
7418
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField
, "s.F").WithArguments("field", "F").WithLocation(12, 42));
18174
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField
, "F").WithArguments("field", "F").WithLocation(5, 34));
Semantics\RefLocalsAndReturnsTests.cs (3)
313
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField
, "rro = ref _rw").WithArguments("variable", "rro").WithLocation(13, 36),
335
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField
, "i").WithArguments("variable", "i").WithLocation(5, 37),
338
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField
, "i").WithArguments("variable", "i").WithLocation(6, 43)