7 references to ERR_MismatchedRefEscapeInTernary
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Operators.cs (1)
4319diagnostics.Add(_inUnsafeRegion ? ErrorCode.WRN_MismatchedRefEscapeInTernary : ErrorCode.ERR_MismatchedRefEscapeInTernary, node.Location);
Errors\ErrorFacts.cs (1)
1807case ErrorCode.ERR_MismatchedRefEscapeInTernary:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\RefEscapingTests.cs (5)
3279Diagnostic(ErrorCode.ERR_MismatchedRefEscapeInTernary, "true ? ref sOuter : ref sInner").WithLocation(33, 36), 3285Diagnostic(ErrorCode.ERR_MismatchedRefEscapeInTernary, "true ? ref sInner : ref sOuter").WithLocation(36, 36), 3291Diagnostic(ErrorCode.ERR_MismatchedRefEscapeInTernary, "true ? ref ternarySame1 : ref ternarySame2").WithLocation(39, 36) 3990Diagnostic(ErrorCode.ERR_MismatchedRefEscapeInTernary, "flag1 ? ref global : ref local").WithLocation(13, 31), 3996Diagnostic(ErrorCode.ERR_MismatchedRefEscapeInTernary, "flag2 ? ref global : ref local").WithLocation(14, 31)