8 references to ERR_AssgReadonlyStatic2
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.ValueChecks.cs (1)
3353
ErrorCode.
ERR_AssgReadonlyStatic2
Errors\ErrorFacts.cs (1)
1311
or ErrorCode.
ERR_AssgReadonlyStatic2
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\InitOnlyMemberTests.cs (1)
3043
Diagnostic(ErrorCode.
ERR_AssgReadonlyStatic2
, "@field.content").WithArguments("C.field").WithLocation(15, 13)
Semantics\ReadOnlyStructsTests.cs (1)
1133
Diagnostic(ErrorCode.
ERR_AssgReadonlyStatic2
, "s.field").WithArguments("Program.s").WithLocation(8, 9)
Semantics\RefEscapingTests.cs (1)
7873
Diagnostic(ErrorCode.
ERR_AssgReadonlyStatic2
, "ReadOnlyVec.Self").WithArguments("Program.ReadOnlyVec").WithLocation(15, 9)
Semantics\SemanticAnalyzerTests.cs (1)
705
Diagnostic(ErrorCode.
ERR_AssgReadonlyStatic2
, "static_readonly.z").WithArguments("C.static_readonly").WithLocation(17, 9),
Semantics\SemanticErrorTests.cs (2)
15761
Diagnostic(ErrorCode.
ERR_AssgReadonlyStatic2
, "Outer.inner.i").WithArguments("Outer.inner"));
16609
Diagnostic(ErrorCode.
ERR_AssgReadonlyStatic2
, "C._s1.name[3]").WithArguments("C._s1").WithLocation(19, 9),