Programming Search⌘K

Kotlin errors and diagnostics, page 3 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 argument for type parameter '…' cannot be inferred because it has incompatible upper bounds: … (…). INFERRED_TYPE_VARIABLE_INTO_EMPTY_INTERSECTION

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

Code
INFERRED_TYPE_VARIABLE_INTO_EMPTY_INTERSECTION
Severity
warning
Message
Type argument for type parameter '{}' cannot be inferred because it has incompatible upper bounds: {} ({}{}).

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

Value classes will no longer be inline by default in a future release. - To preserve the inline behavior, mark it as 'inline value class'. - To migrate to a full value class, enable the experimental '${LanguageFeature.FullValueClasses.presentableName}' feature by supplying the '${featureToEnablingFlagMap[FullValueClasses]}' compiler argument, but note that no stability guarantees are provided for it. For more information, see the corresponding https://kotl.in/inline-value-classes and https://kotl.in/full-value-classes language proposals. . INLINE_VALUE_CLASS_WITHOUT_EXPLICIT_INLINE

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

Code
INLINE_VALUE_CLASS_WITHOUT_EXPLICIT_INLINE
Severity
warning
Message
Value classes will no longer be inline by default in a future release. - To preserve the inline behavior, mark it as 'inline value class'. - To migrate to a full value class, enable the experimental '${LanguageFeature.FullValueClasses.presentableName}' feature by supplying the '${featureToEnablingFlagMap[FullValueClasses]}' compiler argument, but note that no stability guarantees are provided for it. For more information, see the corresponding https://kotl.in/inline-value-classes and https://kotl.in/full-value-classes language proposals.

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

The signature of '…' contains '…' type '…', but is accessed from '…' inline declaration. LESS_VISIBLE_TYPE_IN_INLINE_ACCESSED_SIGNATURE

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

Code
LESS_VISIBLE_TYPE_IN_INLINE_ACCESSED_SIGNATURE
Severity
warning
Message
The signature of '{}' contains '{}' type '{}', but is accessed from '{}' inline declaration.

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

Cannot access class '…' in the parameter type when a default value of that parameter is in use. This may cause problems in cases such as when this type is based on an inline class. Check the module classpath for missing or conflicting dependencies. MISSING_DEPENDENCY_CLASS_IN_PARAMETER_WITH_DEFAULT_VALUE

Code
MISSING_DEPENDENCY_CLASS_IN_PARAMETER_WITH_DEFAULT_VALUE
Severity
warning
Message
Cannot access class '{}' in the parameter type when a default value of that parameter is in use. This may cause problems in cases such as when this type is based on an inline class. Check the module classpath for missing or conflicting dependencies.

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

Type annotation class '…' of the inferred type is inaccessible. Check the module classpath for missing or conflicting dependencies. MISSING_DEPENDENCY_IN_INFERRED_TYPE_ANNOTATION

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

Code
MISSING_DEPENDENCY_IN_INFERRED_TYPE_ANNOTATION
Severity
warning
Message
Type annotation class '{}' of the inferred type is inaccessible. Check the module classpath for missing or conflicting dependencies.

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

Calls in the form of 'suspend {}' are deprecated because 'suspend' in this context will have the meaning of a modifier. Surround the lambda with parentheses: 'suspend({ ... })'. MODIFIER_FORM_FOR_NON_BUILT_IN_SUSPEND

Code
MODIFIER_FORM_FOR_NON_BUILT_IN_SUSPEND
Severity
error
Message
Calls in the form of 'suspend {}' are deprecated because 'suspend' in this context will have the meaning of a modifier. Surround the lambda with parentheses: 'suspend({ ... })'.

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

Calls in the form of 'suspend fun' are deprecated because 'suspend' in the context will have the meaning of a modifier. Surround the argument of the call with parentheses: 'suspend(fun() { ... })'. See https://youtrack.jetbrains.com/issue/KT-49264. MODIFIER_FORM_FOR_NON_BUILT_IN_SUSPEND_FUN_ERROR

Code
MODIFIER_FORM_FOR_NON_BUILT_IN_SUSPEND_FUN_ERROR
Severity
error
Message
Calls in the form of 'suspend fun' are deprecated because 'suspend' in the context will have the meaning of a modifier. Surround the argument of the call with parentheses: 'suspend(fun() { ... })'. See https://youtrack.jetbrains.com/issue/KT-49264

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

'…' is prohibited here. NESTED_CLASS_NOT_ALLOWED_IN_LOCAL

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

Code
NESTED_CLASS_NOT_ALLOWED_IN_LOCAL
Severity
warning
Message
'{}' is prohibited here.

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