-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
2e91b34
commit a528638
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import javax.inject.Inject | ||
import dagger.Module | ||
import dagger.Provides | ||
import dagger.Binds | ||
import assets.Car | ||
import assets.CarImpl | ||
|
||
@Module | ||
abstract class KVoidReturn { | ||
|
||
@<error descr="@Binds methods must return a value (not void)">Binds</error> | ||
abstract fun getCar(car: CarImpl) | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import dagger.Module; | ||
import dagger.Binds; | ||
import assets.Car; | ||
import assets.CarImpl; | ||
|
||
@Module | ||
public abstract class VoidReturn { | ||
|
||
@<error descr="@Binds methods must return a value (not void)">Binds</error> | ||
public abstract void getCar(CarImpl car); | ||
} |