Skip to content

Implemented function still considered abstract #375

@vRallev

Description

@vRallev

Imagine this example:

interface Interface1 {
  fun string(): String
}
                    
interface Interface2 : Interface1 {
  override fun string(): String = "abc"
}

@Component 
abstract class MyComponent1 : Interface1, Interface2

This fails with:

Cannot find an @Inject constructor or provider for: String

But if I change the order of the super types to the following, then the code compiles successfully:

@Component 
abstract class MyComponent1 : Interface2, Interface1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions