Programming Search⌘K

Kotlin errors and diagnostics, page 5 of 5

The error codes and warnings of Kotlin, with the message that each one prints and what causes it. This page has 952 cards.

Type inference failed. The value of the type parameter '…' must be mentioned in input types (argument types, receiver type, or expected type). Try to specify it explicitly. TYPE_INFERENCE_ONLY_INPUT_TYPES_ERROR

Code
TYPE_INFERENCE_ONLY_INPUT_TYPES_ERROR
Severity
error
Message
Type inference failed. The value of the type parameter '{}' must be mentioned in input types (argument types, receiver type, or expected type). Try to specify it explicitly.

Source: github.com. JSON record. This entry is a card. Help write this page.

Cannot use typealias '…' as a callable qualifier in import. Use original class '…' instead or rewrite calls with '…' as a qualifier. See https://youtrack.jetbrains.com/issue/KT-64431. TYPEALIAS_AS_CALLABLE_QUALIFIER_IN_IMPORT

The compiler reports it as a warning, and as an error when the language feature that the deprecation names is turned on.

Code
TYPEALIAS_AS_CALLABLE_QUALIFIER_IN_IMPORT
Severity
warning
Message
Cannot use typealias '{}' as a callable qualifier in import. Use original class '{}' instead or rewrite calls with '{}' as a qualifier. See https://youtrack.jetbrains.com/issue/KT-64431.

Source: github.com. JSON record. This entry is a card. Help write this page.

Typealias to a compiler-required annotation '…' is not allowed. Remove the typealias and use the annotation directly. TYPEALIAS_EXPANDS_TO_COMPILER_REQUIRED_ANNOTATION

The compiler reports it as a warning, and as an error when the language feature that the deprecation names is turned on.

Code
TYPEALIAS_EXPANDS_TO_COMPILER_REQUIRED_ANNOTATION
Severity
warning
Message
Typealias to a compiler-required annotation '{}' is not allowed. Remove the typealias and use the annotation directly.

Source: github.com. JSON record. This entry is a card. Help write this page.

Star projected type alias leads to incompatible upper bound: type parameter '…' must be subtype of '…', but actual: '…'. Consider using the expanded class instead. UPPER_BOUND_VIOLATED_IN_LHS_OF_CLASS_LITERAL_WARNING

Code
UPPER_BOUND_VIOLATED_IN_LHS_OF_CLASS_LITERAL_WARNING
Severity
warning
Message
Star projected type alias leads to incompatible upper bound: type parameter '{}' must be subtype of '{}', but actual: '{}'. Consider using the expanded class instead.

Source: github.com. JSON record. This entry is a card. Help write this page.

Type argument is not within its bounds: type parameter '…' must be subtype of '…', but actual: '…'. UPPER_BOUND_VIOLATED_IN_TYPE_OPERATOR_OR_PARAMETER_BOUNDS

The compiler reports it as a warning, and as an error when the language feature that the deprecation names is turned on.

Code
UPPER_BOUND_VIOLATED_IN_TYPE_OPERATOR_OR_PARAMETER_BOUNDS
Severity
warning
Message
Type argument is not within its bounds: type parameter '{}' must be subtype of '{}', but actual: '{}'.{}

Source: github.com. JSON record. This entry is a card. Help write this page.

Type argument is not within its bounds: type parameter '…' must be subtype of '…', but actual: '…'. This will become an error in future releases. UPPER_BOUND_VIOLATED_IN_TYPEALIAS_EXPANSION_DEPRECATION_WARNING

Code
UPPER_BOUND_VIOLATED_IN_TYPEALIAS_EXPANSION_DEPRECATION_WARNING
Severity
warning
Message
Type argument is not within its bounds: type parameter '{}' must be subtype of '{}', but actual: '{}'. This will become an error in future releases.

Source: github.com. JSON record. This entry is a card. Help write this page.

Value class cannot be recursive. VALUE_CLASS_CANNOT_BE_RECURSIVE_VIA_TYPE_PARAMETERS

The compiler reports it as a warning, and as an error when the language feature that the deprecation names is turned on.

Code
VALUE_CLASS_CANNOT_BE_RECURSIVE_VIA_TYPE_PARAMETERS
Severity
warning
Message
Value class cannot be recursive.

Source: github.com. JSON record. This entry is a card. Help write this page.