7 references to ERR_RefReturnReadonlyNotField2
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.ValueChecks.cs (1)
3386
ErrorCode.
ERR_RefReturnReadonlyNotField2
,
Errors\ErrorFacts.cs (1)
1851
or ErrorCode.
ERR_RefReturnReadonlyNotField2
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
CodeGen\CodeGenInParametersTests.cs (3)
1216
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField2
, "arg2.Alice").WithArguments("variable", "arg2").WithLocation(23, 20)
1307
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField2
, "arg2.Alice").WithArguments("variable", "arg2").WithLocation(14, 24)
1426
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField2
, "arg21.Alice").WithArguments("variable", "arg21").WithLocation(16, 28)
CodeGen\CodeGenRefReadonlyReturnTests.cs (2)
753
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField2
, "M1().Alice").WithArguments("method", "M1").WithLocation(16, 28),
759
Diagnostic(ErrorCode.
ERR_RefReturnReadonlyNotField2
, "P1.Alice").WithArguments("property", "P1").WithLocation(27, 28)