Files
kotlin-fork/idea/testData/intentions/convertLambdaToReference/extension.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

10 lines
192 B
Kotlin
Vendored

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