Skip to content
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

Cannot parse by Kogera if value class is specified for the return value of the generic default implementation #129

Open
k163377 opened this issue Aug 11, 2023 · 0 comments
Labels
value class About value class support

Comments

@k163377
Copy link
Contributor

k163377 commented Aug 11, 2023

It can be reproduced by defining bar as follows

@JvmInline
value class VC(val value: Int)

interface I<T> {
    val foo: T
    val bar: T get() = foo
}

class Impl(override val foo: VC) : I<VC>

The cause is that the Kotlin property fails to tie to the unboxed getter generated in such cases.
Details are reported in the following ticket.
https://youtrack.jetbrains.com/issue/KT-60975

@k163377 k163377 added wontfix This will not be worked on value class About value class support and removed wontfix This will not be worked on labels Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
value class About value class support
Projects
None yet
Development

No branches or pull requests

1 participant