Programming Search⌘K

Kotlin errors and diagnostics, page 2 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.

Names '…' and '…' of parameter #… conflict in the following members of supertypes: …. This may cause problems when calling this function with named arguments. DIFFERENT_NAMES_FOR_THE_SAME_PARAMETER_IN_SUPERTYPES

Code
DIFFERENT_NAMES_FOR_THE_SAME_PARAMETER_IN_SUPERTYPES
Severity
warning
Message
Names '{}' and '{}' of parameter #{} conflict in the following members of supertypes: {}. This may cause problems when calling this function with named arguments.

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

Applying DSL marker annotation '…' to target '…' has no effect. DSL marker annotations must only be applied to types. See https://youtrack.jetbrains.com/issue/KT-81567 for further information. DSL_MARKER_APPLIED_TO_WRONG_TARGET

Code
DSL_MARKER_APPLIED_TO_WRONG_TARGET
Severity
warning
Message
Applying DSL marker annotation '{}' to target '{}' has no effect. DSL marker annotations must only be applied to types. See https://youtrack.jetbrains.com/issue/KT-81567 for further information.

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

'@DslMarker' annotation propagates to more than one receiver or context parameter. This often means that none of them can be used. Move the '@DslMarker' annotation to the receiver or context parameter whose scope must be limited. . DSL_MARKER_PROPAGATES_TO_MANY

Code
DSL_MARKER_PROPAGATES_TO_MANY
Severity
warning
Message
'@DslMarker' annotation propagates to more than one receiver or context parameter. This often means that none of them can be used. Move the '@DslMarker' annotation to the receiver or context parameter whose scope must be limited.

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

Comparison might not be intended: - Type of left-hand side '…' is not a subtype of equality bound of right-hand side '…'. - Type of right-hand side '…' is not a subtype of equality bound of left-hand side '…'. If the comparison is intended, suppress this warning or add an explicit 'is' check before the comparison. EQUALITY_SUSPICIOUS_BY_EQUALITY_BOUNDS

Code
EQUALITY_SUSPICIOUS_BY_EQUALITY_BOUNDS
Severity
warning
Message
Comparison might not be intended: - Type of left-hand side '{}' is not a subtype of equality bound of right-hand side '{}'. - Type of right-hand side '{}' is not a subtype of equality bound of left-hand side '{}'. If the comparison is intended, suppress this warning or add an explicit 'is' check before the comparison.

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

Suppression of error '…' might compile and work, but the compiler behavior is UNSPECIFIED and WILL NOT BE PRESERVED. Please report your use case to the Kotlin issue tracker instead: https://kotl.in/issue. ERROR_SUPPRESSION

Code
ERROR_SUPPRESSION
Severity
warning
Message
Suppression of error '{}' might compile and work, but the compiler behavior is UNSPECIFIED and WILL NOT BE PRESERVED. Please report your use case to the Kotlin issue tracker instead: https://kotl.in/issue

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

'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. Consider using the '-Xexpect-actual-classes' flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573. EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING

Code
EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING
Severity
warning
Message
'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. Consider using the '-Xexpect-actual-classes' flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573

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

'expect' function source is not found, so generating default argument values declared there is impossible. Corresponding file must be added to compilation sources. EXPECTED_FUNCTION_SOURCE_WITH_DEFAULT_ARGUMENTS_NOT_FOUND

Code
EXPECTED_FUNCTION_SOURCE_WITH_DEFAULT_ARGUMENTS_NOT_FOUND
Severity
error
Message
'expect' function source is not found, so generating default argument values declared there is impossible. Corresponding file must be added to compilation sources.

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

Usage of a qualifier with type arguments to call nested class constructor is deprecated. The type arguments must be removed. GENERIC_QUALIFIER_ON_CONSTRUCTOR_CALL

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

Code
GENERIC_QUALIFIER_ON_CONSTRUCTOR_CALL
Severity
warning
Message
Usage of a qualifier with type arguments to call nested class constructor is deprecated. The type arguments must be removed.

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

Class annotated with '@WillBecomeValue' must override '…'. The identity-based implementation inherited from 'Any' will not be used once the class becomes a 'value' class. IDENTITY_BASED_MEMBER_IN_WILL_BECOME_VALUE_CLASS

Code
IDENTITY_BASED_MEMBER_IN_WILL_BECOME_VALUE_CLASS
Severity
error
Message
Class annotated with '@WillBecomeValue' must override '{}'. The identity-based implementation inherited from 'Any' will not be used once the class becomes a 'value' class.

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