arekolek
01/24/2020, 8:30 AM// 1
interface FooFactory {
fun getFoo(): Foo
}
// 2
interface FooFactory : () -> Foo
// 3
interface FooFactory : () -> Foo {
override fun invoke(): Foo
}
Is 2 or 3 something that people do?
(not using a typealias
here, because it wouldn't work with Dagger)Matteo Mirk
01/24/2020, 9:09 AMarekolek
01/24/2020, 10:07 AMMichael Friend
01/24/2020, 6:25 PM