Norbi
interface A interface B fun f1(block: A.() -> Unit) { TODO() } fun f2(block: context(B) () -> Unit) { TODO() } fun f( block: context(B) A.() -> Unit) { f1 { f2 { block( this@f2, // How? this@f1 ) } } }
f2()
fun f2(block: B.() -> Unit)
Youssef Shoaib [MOD]
context(A) fun <A> given(): A = this@A
A modern programming language that makes developers happier.