Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Jolanrensen opened this issue Jan 25, 2024 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@Jolanrensen
Copy link
Collaborator

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.

@Jolanrensen Jolanrensen added bug Something isn't working invalid This issue/PR doesn't seem right labels Jan 25, 2024
@Jolanrensen Jolanrensen added this to the Backlog milestone Jan 25, 2024
@zaleslaw zaleslaw removed the invalid This issue/PR doesn't seem right label Apr 8, 2024
@Jolanrensen
Copy link
Collaborator Author

They were already removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants