Files
kotlin-fork/idea/testData/intentions/convertLambdaToReference/unwrap.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
153 B
Kotlin
Vendored

// WITH_RUNTIME
class Wrapper<T>(private val x: T) {
fun unwrap() = x
}
val unwrapped = listOf(Wrapper(1), Wrapper("B")).map { <caret>it.unwrap() }