5 references to ERR_RefReturnScopedParameter2
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.ValueChecks.cs (1)
1588(checkingReceiver: true, isRefScoped: true, inUnsafeRegion: false, _) => (ErrorCode.ERR_RefReturnScopedParameter2, parameter.Syntax),
Errors\ErrorFacts.cs (1)
2320or ErrorCode.ERR_RefReturnScopedParameter2
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\RefFieldTests.cs (3)
18802Diagnostic(ErrorCode.ERR_RefReturnScopedParameter2, "r3").WithArguments("r3").WithLocation(10, 51)); 19131Diagnostic(ErrorCode.ERR_RefReturnScopedParameter2, "r3").WithArguments("r3").WithLocation(16, 56)); 22433Diagnostic(ErrorCode.ERR_RefReturnScopedParameter2, "s").WithArguments("s").WithLocation(6, 68));