Skip to content

Anvil with trackSourceFiles enabled double binds on scope change  #1056

Description

@Laimiux

What

If there are subcomponents in your graph as such

@MergeComponent(AppScope::class)
interface AppScope {
  fun mySubcomponent(): MySubcomponent
}

@MergeSubcomponent(SubcomponentScope::class)
interface MySubcomponent

Moving a dependency scope from one to the other via ContributesBinding will end up with error: [Dagger/DuplicateBindings]

interface MyClass

// Changing from `SubcomponentScope` to `AppScope` will throw an error
@ContributesBinding(SubcomponentScope::class)
class MyClassImpl : MyClass

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