Files
kotlin-fork/compiler/testData/diagnostics/tests/numbers/kt41679.fir.kt
T
Dmitriy Novozhilov 99e681ec1d [NI] Assume that ILT is number type in inference
#KT-41679 Fixed
2021-04-06 11:40:42 +03:00

13 lines
423 B
Kotlin
Vendored

// WITH_STDLIB
// ISSUE: KT-41679
fun test_1() {
var y = <!DEBUG_INFO_EXPRESSION_TYPE("kotlin.collections.MutableList<kotlin.Comparable<*> & java.io.Serializable>")!>mutableListOf("MH", 19, true)<!>
y[0] = "value4"
}
fun test_2(x: Int) {
var y = <!DEBUG_INFO_EXPRESSION_TYPE("kotlin.collections.MutableList<kotlin.Comparable<*> & java.io.Serializable>")!>mutableListOf("MH", x, true)<!>
y[0] = "value4"
}