Header menu logo F# Compiler Guide

TypeMismatchDiagnosticExtendedData Type

Additional data for type-mismatch-like (usually with ErrorNumber = 1) diagnostics

Instance members

Instance member Description

this.ActualType

Full Usage: this.ActualType

Returns: FSharpType

Represents the actual F# type in the current context

Returns: FSharpType

this.ContextInfo

Full Usage: this.ContextInfo

Returns: DiagnosticContextInfo

The context in which the type mismatch was found

Returns: DiagnosticContextInfo

this.DisplayContext

Full Usage: this.DisplayContext

Returns: FSharpDisplayContext

Represents the information needed to format types

Returns: FSharpDisplayContext

this.ExpectedType

Full Usage: this.ExpectedType

Returns: FSharpType

Represents the expected F# type in the current context

Returns: FSharpType

Type something to start searching.