Files
kotlin-fork/plugins/kapt3/kapt3-compiler/testData/converter/genericParameters.kt
T
Alexander Udalov ebb9659e03 Add mode to run kapt with JVM IR, use in tests
Currently JVM IR is not supported in kapt, so almost all tests are
failing, and thus are muted with IGNORE_BACKEND.

 #KT-49682
2022-02-08 20:15:13 +01:00

9 lines
273 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// CORRECT_ERROR_TYPES
// WITH_STDLIB
class MappedList<out T, R>(val list: List<T>, private val function: (T) -> R) : AbstractList<R>(), List<R> {
override fun get(index: Int) = function(list[index])
override val size get() = list.size
}