Skip to content

[KSP2] KSPropertyDeclaration.getter is empty for property that is duplicated in two parent interfaces #2420

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

Open
bacecek opened this issue Apr 16, 2025 · 1 comment
Labels
AA waiting for upstream fix
Milestone

Comments

@bacecek
Copy link
Contributor

bacecek commented Apr 16, 2025

class TestClass

interface Deps1 {
    val testClass: TestClass
}

interface Deps2 {   
    val testClass: TestClass
}

interface Root: Deps1, Deps2

In that case getter of testClass property is null, while in KSP1 it returns actual getter.

@ting-yuan
Copy link
Collaborator

Looks like a bug in the Kotlin compiler or Kotlin Analysis API, where the getter is omitted in the fake override.

@ting-yuan ting-yuan added the AA waiting for upstream fix label Apr 24, 2025
@ting-yuan ting-yuan modified the milestones: 2.0.1, 2.0.2 Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AA waiting for upstream fix
Projects
None yet
Development

No branches or pull requests

2 participants