Skip to content
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

Requiring @JvmSuppressWildcards when consuming Typed dependencies #195

Open
andreasnomikos opened this issue Mar 16, 2020 · 0 comments
Open

Comments

@andreasnomikos
Copy link

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() {
...
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

No branches or pull requests

1 participant