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)
4491
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)", "bool").WithLocation(4, 15 + expression1.Length),
4494
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "void").WithLocation(5, 14 + expression2.Length)
4529
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)", "void").WithLocation(4, 15 + expression1.Length),
4532
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "bool").WithLocation(5, 14 + expression2.Length)
Semantics\RawInterpolationTests_Handler.cs (8)
2770
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)", "bool").WithLocation(4, 37),
2773
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "void").WithLocation(5, 36));
2780
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)", "bool").WithLocation(4, 27),
2783
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "void").WithLocation(5, 26));
2820
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)", "void").WithLocation(4, 37),
2823
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "bool").WithLocation(5, 36));
2830
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)", "void").WithLocation(4, 27),
2833
Diagnostic(ErrorCode.
ERR_InterpolatedStringHandlerMethodReturnInconsistent
, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "bool").WithLocation(5, 26));