Skip to content

Meaningless warnings for some KProperty<DataRow<C>> extension functions: CANDIDATE_CHOSEN_USING_OVERLOAD_RESOLUTION_BY_LAMBDA_ANNOTATION #569

Closed
@Jolanrensen

Description

@Jolanrensen

There are some functions introduced by #372 which throw compiler/front-end warnings that can be ignored: CANDIDATE_CHOSEN_USING_OVERLOAD_RESOLUTION_BY_LAMBDA_ANNOTATION. This warning is caused by a workaround for this YouTrack issue (and this).

image

This warning only occurs in places where there exist overloads for both
KProperty<DataRow<C>> and KProperty<C> with a lambda argument. To prevent clashes on the JVM, one of the two functions is annotated with @JvmName(). Then, to make calling both functions possible, the non-DataRow overload is annotated with @OverloadResolutionByLambdaReturnType, which causes the warning to appear on the DataRow overload.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions