You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current proposal says that "component-functions are resolved in the scope that contains the lambda",
does it also mean that the following example should not work?
I'm aware that it seems obvious, but still want to be sure my understanding is correct
class A
class D {
operator fun A.component1() = 1.0
operator fun A.component2() = ' '
}
fun foobar(block: D.(A) -> Unit) { }
fun bar() {
// Error: component functions are unresolved
foobar { (a, b) -> }
}
Proposal
The text was updated successfully, but these errors were encountered: