14 references to ERR_InterpolatedStringHandlerMethodReturnInconsistent
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_InterpolatedString.cs (1)
999
diagnostics.Add(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, part.Syntax.Location, method, expected);
Errors\ErrorFacts.cs (1)
2197
or ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\InterpolationTests.cs (4)
4490
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)", "bool").WithLocation(4, 15 + expression1.Length),
4493
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "void").WithLocation(5, 14 + expression2.Length)
4528
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)", "void").WithLocation(4, 15 + expression1.Length),
4531
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "bool").WithLocation(5, 14 + expression2.Length)
Semantics\RawInterpolationTests_Handler.cs (8)
2769
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)", "bool").WithLocation(4, 37),
2772
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "void").WithLocation(5, 36));
2779
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)", "bool").WithLocation(4, 27),
2782
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "void").WithLocation(5, 26));
2819
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)", "void").WithLocation(4, 37),
2822
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "bool").WithLocation(5, 36));
2829
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)", "void").WithLocation(4, 27),
2832
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "bool").WithLocation(5, 26));