rook
02/22/2019, 5:19 PMinvoke() inlined or otherwise achieve what I’m attempting in doWork()?Marc Knaup
02/25/2019, 9:03 PMinvoke() without parameters would result in fooImpl() not fooImpl { … } which takes a lambda.
What about this:
interface Foo {
//abstract stuff
}
inline operator fun Foo.invoke(block: () -> Unit) {
//doing stuff
}
No way to override invoke here though and no, you cannot make inline functions overridable 🙂rook
02/25/2019, 9:33 PM