Skip to content

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

@k163377

Description

@k163377

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    value classAbout value class support

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions