blob: be468075cfc8d4b9becb2d50d64817bfdea55b08 [file]
// 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