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