Are there any plans on supporting several receiver...
# language-proposals
m
Are there any plans on supporting several receivers in extension functions? For example, Anko DSL uses its own layout subclasses to provide proper LayoutParams:
Copy code
open class _FrameLayout : FrameLayout {
    fun <T: View> T.lparams(...): T {...}
}
for example, this may look like this:
Copy code
@receiver0:SomeAnnotation
@receiver1:SomeAnnotation
fun <T : View> FrameLayout.T.lparams(...): T {
    // of course, if we have a package 'FrameLayout', this will break, so this syntax is just an example
    // this@FrameLayout & this@T are available
}