70 references to ERR_TypeMismatch2
Microsoft.CodeAnalysis.VisualBasic (20)
Binding\Binder_Conversions.vb (3)
1748ReportDiagnostic(diagnostics, location, ERRID.ERR_TypeMismatch2, sourceType, targetType) 1765ReportDiagnostic(diagnostics, location, ERRID.ERR_TypeMismatch2, sourceType, targetType) 1789ReportDiagnostic(diagnostics, location, ERRID.ERR_TypeMismatch2, sourceType, targetType)
Errors\ErrorFacts.vb (1)
249ERRID.ERR_TypeMismatch2,
Preprocessor\ExpressionEvaluator.vb (16)
435Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr.Type, value.SpecialType.GetDisplayName(), specialType.GetDisplayName()) 464Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr.Type, val.SpecialType, specialType) 621Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, SpecialType.System_Char.GetDisplayName(), SpecialType.System_Boolean.GetDisplayName()) 623Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, SpecialType.System_DateTime.GetDisplayName(), SpecialType.System_Boolean.GetDisplayName()) 633Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, specialType, SpecialType.System_Boolean.GetDisplayName()) 668Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, SpecialType.System_Char.GetDisplayName(), toSpecialType.GetDisplayName()) 671Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, SpecialType.System_DateTime.GetDisplayName(), toSpecialType.GetDisplayName()) 680Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType.GetDisplayName(), toSpecialType.GetDisplayName()) 741Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType, SpecialType.System_Char.GetDisplayName()) 744Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType, SpecialType.System_Char.GetDisplayName()) 759Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType, SpecialType.System_Char.GetDisplayName()) 774Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType, SpecialType.System_DateTime.GetDisplayName()) 779Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType, SpecialType.System_DateTime.GetDisplayName()) 782Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType, SpecialType.System_DateTime.GetDisplayName()) 795Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType, SpecialType.System_DateTime.GetDisplayName()) 832Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, specialType, SpecialType.System_String.GetDisplayName())
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Emit\OptionalArgumentsTests.vb (1)
1248comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_TypeMismatch2, "IntegerWithDateTimeOptionalValue()").WithArguments("Date", "Integer"))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (48)
Binding\BindingErrorTests.vb (5)
4879</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_TypeMismatch2, "at2").WithArguments("<anonymous type: f2 As String, f1 As Object>", "<anonymous type: f1 As Object, f2 As String>")) 5143Diagnostic(ERRID.ERR_TypeMismatch2, "{1, 2, 3}").WithArguments("Integer()", "System.Collections.Generic.List(Of Integer)")) 5158CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_TypeMismatch2, "{1, 2, 3}").WithArguments("Integer()", "System.Collections.Generic.List(Of Integer)")) 14046Diagnostic(ERRID.ERR_TypeMismatch2, "New Action(AddressOf Me.Foo)").WithArguments("System.Action", "C1.xEventHandler"), 14048Diagnostic(ERRID.ERR_TypeMismatch2, "New Action(AddressOf Me.Foo)").WithArguments("System.Action", "C1.xEventHandler"))
Diagnostics\OperationAnalyzerTests.vb (1)
1749Diagnostic(ERRID.ERR_TypeMismatch2, "10", New Object() {"Integer", "B2"}).WithLocation(23, 17),
Semantics\ArrayLiteralTests.vb (4)
341Diagnostic(ERRID.ERR_TypeMismatch2, "{1}").WithArguments("Integer()", "Module1.C"), 342Diagnostic(ERRID.ERR_TypeMismatch2, "{1}").WithArguments("Integer()", "Module1.C")) 346Diagnostic(ERRID.ERR_TypeMismatch2, "{1}").WithArguments("Integer()", "Module1.C"), 347Diagnostic(ERRID.ERR_TypeMismatch2, "{1}").WithArguments("Integer()", "Module1.C"))
Semantics\Conversions.vb (37)
2792Diagnostic(ERRID.ERR_TypeMismatch2, "Da").WithArguments("Date", "Integer"), 2793Diagnostic(ERRID.ERR_TypeMismatch2, "Da").WithArguments("Date", "Integer"), 2794Diagnostic(ERRID.ERR_TypeMismatch2, "[In]").WithArguments("Integer", "Date"), 2795Diagnostic(ERRID.ERR_TypeMismatch2, "[In]").WithArguments("Integer", "Date"), 2843Diagnostic(ERRID.ERR_TypeMismatch2, "Da").WithArguments("Date", "Integer"), 2844Diagnostic(ERRID.ERR_TypeMismatch2, "Da").WithArguments("Date", "Integer"), 2845Diagnostic(ERRID.ERR_TypeMismatch2, "[In]").WithArguments("Integer", "Date"), 2846Diagnostic(ERRID.ERR_TypeMismatch2, "[In]").WithArguments("Integer", "Date"), 2897Diagnostic(ERRID.ERR_TypeMismatch2, "Da").WithArguments("Date", "Integer"), 2898Diagnostic(ERRID.ERR_TypeMismatch2, "Da").WithArguments("Date", "Integer"), 2899Diagnostic(ERRID.ERR_TypeMismatch2, "[In]").WithArguments("Integer", "Date"), 2900Diagnostic(ERRID.ERR_TypeMismatch2, "[In]").WithArguments("Integer", "Date"), 3047Diagnostic(ERRID.ERR_TypeMismatch2, "Int64.MaxValue").WithArguments("Long", "Integer"), 3048Diagnostic(ERRID.ERR_TypeMismatch2, "System.Double.MaxValue").WithArguments("Double", "Decimal"), 3049Diagnostic(ERRID.ERR_TypeMismatch2, "Da").WithArguments("Date", "Integer"), 3050Diagnostic(ERRID.ERR_TypeMismatch2, "[In]").WithArguments("Integer", "Date"), 3060Diagnostic(ERRID.ERR_TypeMismatch2, "St").WithArguments("String", "Char"), 3061Diagnostic(ERRID.ERR_TypeMismatch2, "Ch").WithArguments("Char", "String"), 3062Diagnostic(ERRID.ERR_TypeMismatch2, "ChArray").WithArguments("Char()", "String"), 3063Diagnostic(ERRID.ERR_TypeMismatch2, "St").WithArguments("String", "Char()"), 3067Diagnostic(ERRID.ERR_TypeMismatch2, "Si").WithArguments("Single", "Double")) 3084Diagnostic(ERRID.ERR_TypeMismatch2, "Int64.MaxValue").WithArguments("Long", "Integer"), 3085Diagnostic(ERRID.ERR_TypeMismatch2, "System.Double.MaxValue").WithArguments("Double", "Decimal"), 3086Diagnostic(ERRID.ERR_TypeMismatch2, "Da").WithArguments("Date", "Integer"), 3087Diagnostic(ERRID.ERR_TypeMismatch2, "[In]").WithArguments("Integer", "Date"), 3097Diagnostic(ERRID.ERR_TypeMismatch2, "St").WithArguments("String", "Char"), 3098Diagnostic(ERRID.ERR_TypeMismatch2, "Ch").WithArguments("Char", "String"), 3099Diagnostic(ERRID.ERR_TypeMismatch2, "ChArray").WithArguments("Char()", "String"), 3100Diagnostic(ERRID.ERR_TypeMismatch2, "St").WithArguments("String", "Char()"), 3104Diagnostic(ERRID.ERR_TypeMismatch2, "Si").WithArguments("Single", "Double")) 3232Diagnostic(ERRID.ERR_TypeMismatch2, "Ch").WithArguments("Char", "String"), 3233Diagnostic(ERRID.ERR_TypeMismatch2, "ChArray").WithArguments("Char()", "String"), 3234Diagnostic(ERRID.ERR_TypeMismatch2, "St").WithArguments("String", "Char()"), 3260Diagnostic(ERRID.ERR_TypeMismatch2, "Ch").WithArguments("Char", "String"), 3261Diagnostic(ERRID.ERR_TypeMismatch2, "ChArray").WithArguments("Char()", "String"), 3262Diagnostic(ERRID.ERR_TypeMismatch2, "St").WithArguments("String", "Char()"), 4209Diagnostic(ERRID.ERR_TypeMismatch2, "300").WithArguments("Integer", "Byte"))
Semantics\OptionalArgumentTests.vb (1)
166comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_TypeMismatch2, "1").WithArguments("Integer", "System.Guid"))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Parser\ParseDirectives.vb (1)
3383Diagnostic(ERRID.ERR_TypeMismatch2, "x").WithArguments("Integer", "System.Exception").WithLocation(5, 37))