14 lines
252 B
Kotlin
Vendored
14 lines
252 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
package n
|
|
|
|
//+JDK
|
|
import java.util.*
|
|
|
|
fun <T> expected(t: T, f: () -> T) : T = t
|
|
|
|
fun test(arrayList: ArrayList<Int>, list: List<Int>) {
|
|
val t = expected(arrayList, { list.reverse() })
|
|
}
|
|
|
|
fun <T> List<T>.reverse() : List<T> = this
|