Last active
July 22, 2019 17:20
-
-
Save manuelvicnt/fb3eee591233eee9952cef45eb060cd6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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