[NI] Assume that ILT is number type in inference

#KT-41679 Fixed
This commit is contained in:
Dmitriy Novozhilov
2021-04-05 15:46:37 +03:00
committed by TeamCityServer
parent a107e3d160
commit 99e681ec1d
9 changed files with 46 additions and 4 deletions
@@ -0,0 +1,12 @@
// 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"
}
+12
View File
@@ -0,0 +1,12 @@
// WITH_STDLIB
// ISSUE: KT-41679
fun test_1() {
var y = <!DEBUG_INFO_EXPRESSION_TYPE("kotlin.collections.MutableList<{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<{Comparable<*> & java.io.Serializable}>")!>mutableListOf("MH", x, true)<!>
y[0] = "value4"
}
@@ -0,0 +1,5 @@
package
public fun test_1(): kotlin.Unit
public fun test_2(/*0*/ x: kotlin.Int): kotlin.Unit