14 references to ERR_InterpolatedStringHandlerMethodReturnInconsistent
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_InterpolatedString.cs (1)
831
diagnostics.Add(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, part.Syntax.Location, method, expected);
Errors\ErrorFacts.cs (1)
2140
case ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\InterpolationTests.cs (4)
4463
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)", "bool").WithLocation(4, 15 + expression1.Length),
4466
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "void").WithLocation(5, 14 + expression2.Length)
4501
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)", "void").WithLocation(4, 15 + expression1.Length),
4504
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "bool").WithLocation(5, 14 + expression2.Length)
Semantics\RawInterpolationTests_Handler.cs (8)
2768
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)", "bool").WithLocation(4, 37),
2771
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "void").WithLocation(5, 36));
2778
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)", "bool").WithLocation(4, 27),
2781
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "void").WithLocation(5, 26));
2818
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)", "void").WithLocation(4, 37),
2821
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "bool").WithLocation(5, 36));
2828
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)", "void").WithLocation(4, 27),
2831
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "bool").WithLocation(5, 26));