[NI] Assume that ILT is number type in inference
#KT-41679 Fixed
This commit is contained in:
committed by
TeamCityServer
parent
a107e3d160
commit
99e681ec1d
@@ -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"
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user