Files
kotlin-fork/nj2k/testData/inference/mutability/listIteratorMutableCalls.kt
T
Ilya Kirillov f61bb5aa39 New J2K: implement mutability inference in post-processing
#KT-24293 fixed
#KT-19603 fixed
2019-09-10 14:09:26 +03:00

17 lines
563 B
Kotlin
Vendored

fun a(
l0: /*T1@*/MutableListIterator</*T0@*/Int>,
l1: /*T3@*/MutableListIterator</*T2@*/Int>,
l2: /*T5@*/MutableListIterator</*T4@*/Int>
) {
l0/*T1@MutableListIterator<T0@Int>*/.add(1/*LIT*/)
l1/*T3@MutableListIterator<T2@Int>*/.remove()
l2/*T5@MutableListIterator<T4@Int>*/.set(1/*LIT*/)
}
//T0 := T0 due to 'RECEIVER_PARAMETER'
//T1 := LOWER due to 'USE_AS_RECEIVER'
//T2 := T2 due to 'RECEIVER_PARAMETER'
//T3 := LOWER due to 'USE_AS_RECEIVER'
//T4 := T4 due to 'RECEIVER_PARAMETER'
//T5 := LOWER due to 'USE_AS_RECEIVER'