Skip to content

Instantly share code, notes, and snippets.

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

What would you like to do?
// configures a `Printer`
fun providePrinter(): Printer = NetworkPrinter()
// 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.