Files
kotlin-fork/nj2k/testData/inference/common/sequenceOfCalls.kt
T
Ilya Kirillov 2bd5a1f196 New J2K: separate nullability inference from common one & nullability bug fixes
It will be needed for structure mutability inference

#KT-21467 fixed
#KT-32609 fixed
#KT-32572 fixed
#KT-24677 fixed
2019-07-25 14:34:35 +03:00

10 lines
338 B
Kotlin
Vendored

fun a(lst: /*T1@*/List</*T0@*/String>) {
val newList: /*T5@*/List</*T4@*/String> = lst/*T1@List<T0@String>*/
.asSequence</*T2@*/String>()/*Sequence<T2@String>*/
.toList</*T3@*/String>()/*List<T3@String>*/
}
//T0 <: T2 due to 'RECEIVER_PARAMETER'
//T2 <: T3 due to 'RECEIVER_PARAMETER'
//T3 <: T4 due to 'INITIALIZER'