13 references to ERR_TryCastOfValueType1
Microsoft.CodeAnalysis.VisualBasic (3)
Binding\Binder_Conversions.vb (1)
236
ReportDiagnostic(diagnostics, If(castSyntax IsNot Nothing, castSyntax.Type, node), ERRID.
ERR_TryCastOfValueType1
, targetType)
Errors\ErrorFacts.vb (1)
486
ERRID.
ERR_TryCastOfValueType1
,
Preprocessor\ExpressionEvaluator.vb (1)
418
Return ReportSemanticError(ERRID.
ERR_TryCastOfValueType1
, expr.Type)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (6)
Semantics\Conversions.vb (6)
3224
Diagnostic(ERRID.
ERR_TryCastOfValueType1
, "Int32").WithArguments("Integer"),
3225
Diagnostic(ERRID.
ERR_TryCastOfValueType1
, "System.Decimal").WithArguments("Decimal"),
3231
Diagnostic(ERRID.
ERR_TryCastOfValueType1
, "System.Char").WithArguments("Char"),
3252
Diagnostic(ERRID.
ERR_TryCastOfValueType1
, "Int32").WithArguments("Integer"),
3253
Diagnostic(ERRID.
ERR_TryCastOfValueType1
, "System.Decimal").WithArguments("Decimal"),
3259
Diagnostic(ERRID.
ERR_TryCastOfValueType1
, "System.Char").WithArguments("Char"),
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (4)
PreprocessorEETests.vb (4)
294
Assert.Equal(ERRID.
ERR_TryCastOfValueType1
, res.ErrorId)
307
Assert.Equal(ERRID.
ERR_TryCastOfValueType1
, res.ErrorId)
320
Assert.Equal(ERRID.
ERR_TryCastOfValueType1
, res.ErrorId)
333
Assert.Equal(ERRID.
ERR_TryCastOfValueType1
, res.ErrorId)