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