5 references to ERR_RefReadonlyLocal2Cause
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.ValueChecks.cs (1)
3200
ErrorCode.
ERR_RefReadonlyLocal2Cause
,
Errors\ErrorFacts.cs (1)
1314
or ErrorCode.
ERR_RefReadonlyLocal2Cause
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\RefLocalsAndReturnsTests.cs (2)
1966
Diagnostic(ErrorCode.
ERR_RefReadonlyLocal2Cause
, "ro.x").WithArguments("ro", "foreach iteration variable").WithLocation(23, 30),
1969
Diagnostic(ErrorCode.
ERR_RefReadonlyLocal2Cause
, "ro.x").WithArguments("ro", "foreach iteration variable").WithLocation(28, 24)
Semantics\SemanticErrorTests.cs (1)
15864
Diagnostic(ErrorCode.
ERR_RefReadonlyLocal2Cause
, "s.i").WithArguments("s", "foreach iteration variable")