Skip to content

Requiring @JvmSuppressWildcards when consuming Typed dependencies #195

Open
@andreasnomikos

Description

motif usage with kaptish forces using @JvmSuppressWildcards to be able to match types between providers and consumers

0.3.2 with kaptish:

Repro steps or stacktrace:

// Provider
  @motif.Objects
  @Suppress("detekt.UnnecessaryAbstractClass")
  abstract class Objects {
    fun confirmationModalBuilder(): Function0<Foo.Builder> {
      return { Foo.builder() }
    }
...
  }

// Consumer
internal open class FooPresenter(
    private val someProvider: Function0<@JvmSuppressWildcards Foo.Builder>
) : Presenter() {
...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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