Skip to content

KSP2: "Unresolved reference" in common code for entities annotated with SealedObjectInstances #1651

Open
@Tapchicoma

Description

@Tapchicoma

Originally reported in Kotlin bug tracker here

In Kotlin multiplatform module that depends on SealedObjectInstances KSP library to generate the sealedObjectInstances() extension on the Entity Companion object build fails with Kotlin 2.0.0-Beta1 and KSP 2.0.0-Beta1-1.0.15 versions:

e: file:///home/runner/work/SealedObjectInstances/SealedObjectInstances/multi/src/commonMain/kotlin/com/example/Entity.kt:27:47 Unresolved reference 'sealedObjectInstances'.
> Task :multi:compileKotlinJvm FAILED

Repro is available here: SimonMarquis/SealedObjectInstances#163

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions