Files
kotlin-fork/idea/testData/intentions/convertLambdaToReference/member.kt
T
Mikhail Glukhikh 220141ab2b Convert lambda to callable reference intention / inspection #KT-10903 Fixed
(cherry picked from commit b620099)
2016-07-18 17:10:15 +03:00

7 lines
187 B
Kotlin
Vendored

// IS_APPLICABLE: false
class Owner(val z: Int) {
fun foo(y: Int) = y + z
// Possible only in 1.1 with bound references (this::foo)
val x = { arg: Int <caret> -> foo(arg) }
}