Skip to content

[KSP2] Component getter not generated if it's present in two interfaces with the same method signature #189

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
bacecek opened this issue Apr 16, 2025 · 1 comment · Fixed by #190

Comments

@bacecek
Copy link
Collaborator

bacecek commented Apr 16, 2025

  @Test
  fun reproduce() {
      givenKotlinSource("test.TestCase", """
          import com.yandex.yatagan.*
          import javax.inject.*

          class TestClass @Inject constructor()

          interface Deps1 {
              val testClass: TestClass
          }
          
          interface Deps2 {   
              val testClass: TestClass
          }

          @Component
          interface RootComponent: Deps1, Deps2
      """.trimIndent())

      compileRunAndValidate()
  }
@bacecek
Copy link
Collaborator Author

bacecek commented Apr 16, 2025

google/ksp#2420

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant