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