Kapt: Use correct type mapping mode while mapping super types (KT-27126)

This commit is contained in:
Yan Zhulanow
2018-09-28 21:06:44 +03:00
parent f6bf35c1f5
commit 39863edd0e
8 changed files with 251 additions and 3 deletions
@@ -0,0 +1,7 @@
// CORRECT_ERROR_TYPES
// WITH_RUNTIME
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
}