Skip to content

Instantly share code, notes, and snippets.

@manuelvicnt manuelvicnt/MyModule.kt
Last active Jul 22, 2019

Embed
What would you like to do?
@Provides
// configures a `Printer`
fun providePrinter(): Printer = NetworkPrinter()
@Provides
// configures a `NetworkPrinter`, not a plain `Printer`!
fun providePrinter() = NetworkPrinter()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.