Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/inferInFunctionLiterals.fir.kt
T

12 lines
234 B
Kotlin
Vendored

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