11 references to ERR_AssgReadonly2
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.ValueChecks.cs (1)
3350
ErrorCode.
ERR_AssgReadonly2
,
Errors\ErrorFacts.cs (1)
1309
or ErrorCode.
ERR_AssgReadonly2
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\FixedSizeBufferTests.cs (1)
401
Diagnostic(ErrorCode.
ERR_AssgReadonly2
, "c.field.x[0]").WithArguments("S1.field").WithLocation(17, 9),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\InitOnlyMemberTests.cs (6)
2961
Diagnostic(ErrorCode.
ERR_AssgReadonly2
, "field.content").WithArguments("C.field").WithLocation(15, 9),
2964
Diagnostic(ErrorCode.
ERR_AssgReadonly2
, "@field.content").WithArguments("C.field").WithLocation(28, 13),
2967
Diagnostic(ErrorCode.
ERR_AssgReadonly2
, "@field.content").WithArguments("C.field").WithLocation(33, 13),
2970
Diagnostic(ErrorCode.
ERR_AssgReadonly2
, "field.content").WithArguments("C.field").WithLocation(41, 9),
2973
Diagnostic(ErrorCode.
ERR_AssgReadonly2
, "field.content").WithArguments("C.field").WithLocation(45, 9),
2976
Diagnostic(ErrorCode.
ERR_AssgReadonly2
, "@field.content").WithArguments("C.field").WithLocation(51, 13)
Semantics\SemanticErrorTests.cs (2)
15700
new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.
ERR_AssgReadonly2
, Line = 17, Column = 7 } });
16612
Diagnostic(ErrorCode.
ERR_AssgReadonly2
, "myC._s2.name[3]").WithArguments("C._s2").WithLocation(20, 9)