Lambda --> reference supports bound references now #KT-13111 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// IS_APPLICABLE: true
|
||||
|
||||
class Owner(val z: Int) {
|
||||
fun foo(y: Int) = y + z
|
||||
}
|
||||
|
||||
val owner = Owner(42)
|
||||
|
||||
val x = { arg: Int <caret> -> owner.foo(arg) }
|
||||
Reference in New Issue
Block a user