15 references to ERR_RefReadonlyLocal
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.ValueChecks.cs (1)
3218return ErrorCode.ERR_RefReadonlyLocal;
Errors\ErrorFacts.cs (1)
1269or ErrorCode.ERR_RefReadonlyLocal
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenReadonlyStructTests.cs (1)
645Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "this").WithArguments("this").WithLocation(32, 26),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
FieldKeywordTests.cs (1)
5475Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "field").WithArguments("field").WithLocation(5, 45),
Semantics\PrimaryConstructorTests.cs (2)
15454Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "x").WithArguments("x").WithLocation(4, 34) 15480Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "x.F").WithArguments("x.F").WithLocation(4, 34)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (9)
Semantics\ReadOnlyStructsTests.cs (6)
161Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "e").WithArguments("e").WithLocation(46, 16) 225Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "this").WithArguments("this").WithLocation(9, 16), 228Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "this").WithArguments("this").WithLocation(15, 16)); 257Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "this").WithArguments("this").WithLocation(15, 16)); 283Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "this").WithArguments("this").WithLocation(12, 24)); 319Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "f2").WithArguments("f2").WithLocation(21, 16));
Semantics\RefLocalsAndReturnsTests.cs (1)
3737Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "this").WithArguments("this").WithLocation(6, 26)
Semantics\SemanticErrorTests.cs (2)
14989Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "this").WithArguments("this"), 14991Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "this").WithArguments("this"));