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

7 lines
146 B
Plaintext
Vendored

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