6 references to ERR_RefReturnThis
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder.ValueChecks.cs (2)
1005if (errorCode is ErrorCode.ERR_InvalidAddrOp or ErrorCode.ERR_IncrementLvalueExpected or ErrorCode.ERR_RefReturnThis or ErrorCode.ERR_RefLocalOrParamExpected or ErrorCode.ERR_RefLvalueExpected) 3228return isPrimaryConstructorParameter ? ErrorCode.ERR_RefReturnPrimaryConstructorParameter : ErrorCode.ERR_RefReturnThis;
Errors\ErrorFacts.cs (1)
1869or ErrorCode.ERR_RefReturnThis
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\RefFieldTests.cs (1)
20322Diagnostic(ErrorCode.ERR_RefReturnThis, "this").WithLocation(4, 23),
Semantics\RefLocalsAndReturnsTests.cs (2)
2296Diagnostic(ErrorCode.ERR_RefReturnThis, "this").WithLocation(58, 24) 4210Diagnostic(ErrorCode.ERR_RefReturnThis, "this").WithLocation(6, 20)