Files
kotlin-fork/idea/testData/intentions/convertReferenceToLambda/unwrap.kt
T

7 lines
163 B
Kotlin
Vendored

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