Files
kotlin-fork/nj2k/testData/inference/common/listOfListsGenerator.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

17 lines
525 B
Kotlin
Vendored

fun test() {
val x: /*T5@*/List</*T4@*/List</*T3@*/Int>> = List</*T2@*/List</*T1@*/Int>>(13/*LIT*/, {
List</*T0@*/Int>(7/*LIT*/, {
666/*LIT*/
}/*Function0<Int, T6@Int>*/)/*List<T0@Int>*/
}/*Function0<Int, T7@List<T8@Int>>*/
)/*List<T2@List<T1@Int>>*/
}
//LOWER <: T6 due to 'RETURN'
//T6 <: T0 due to 'PARAMETER'
//T0 <: T8 due to 'RETURN'
//T8 <: T1 due to 'PARAMETER'
//T7 <: T2 due to 'PARAMETER'
//T1 <: T3 due to 'INITIALIZER'
//T2 <: T4 due to 'INITIALIZER'