6 references to ERR_LiteralDoubleCast
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Statements.cs (1)
2263
Error(diagnostics, ErrorCode.
ERR_LiteralDoubleCast
, syntax, (targetType.SpecialType == SpecialType.System_Single) ? "F" : "M", targetType);
Errors\ErrorFacts.cs (1)
1026
or ErrorCode.
ERR_LiteralDoubleCast
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_IReturnStatement.cs (1)
137
Diagnostic(ErrorCode.
ERR_LiteralDoubleCast
, "0.0").WithArguments("F", "float").WithLocation(6, 26)
IOperation\IOperationTests_ISymbolInitializer.cs (1)
400
Diagnostic(ErrorCode.
ERR_LiteralDoubleCast
, "0.0").WithArguments("F", "float").WithLocation(4, 33),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\SemanticErrorTests.cs (2)
11671
Diagnostic(ErrorCode.
ERR_LiteralDoubleCast
, "1.0").WithArguments("M", "decimal").WithLocation(7, 22),
11674
Diagnostic(ErrorCode.
ERR_LiteralDoubleCast
, "2.0").WithArguments("F", "float").WithLocation(8, 20),