14 references to ERR_RefReadonlyLocal
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.ValueChecks.cs (1)
2706return ErrorCode.ERR_RefReadonlyLocal;
Errors\ErrorFacts.cs (1)
1207case 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.Semantic.UnitTests (11)
Semantics\PrimaryConstructorTests.cs (2)
14436Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "x").WithArguments("x").WithLocation(4, 34) 14462Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "x.F").WithArguments("x.F").WithLocation(4, 34)
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)
3364Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "this").WithArguments("this").WithLocation(6, 26)
Semantics\SemanticErrorTests.cs (2)
14876Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "this").WithArguments("this"), 14878Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "this").WithArguments("this"));