KT-13111: lambda --> reference support methods called via this now

This commit is contained in:
Mikhail Glukhikh
2017-03-10 17:38:03 +03:00
parent 19db4869e6
commit 2c692de98f
4 changed files with 35 additions and 13 deletions
@@ -0,0 +1,4 @@
class Owner(val z: Int) {
fun foo(y: Int) = y + z
val x = { y: Int -><caret> this.foo(y) }
}
@@ -0,0 +1,4 @@
class Owner(val z: Int) {
fun foo(y: Int) = y + z
val x = this::foo
}