Switch default JVM target to 1.8
#KT-29405 Fixed
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
|
||||
fun foo() {
|
||||
val x: Int? = 6
|
||||
val hc = x!!.hashCode()
|
||||
}
|
||||
|
||||
// 1 java/lang/Integer.hashCode \(I\)I
|
||||
// 0 java/lang/Integer.valueOf
|
||||
// 0 intValue
|
||||
@@ -4,4 +4,4 @@ fun box(): String {
|
||||
return "OK"
|
||||
}
|
||||
|
||||
// 1 INVOKESTATIC java/lang/Integer.valueOf
|
||||
// 0 INVOKESTATIC java/lang/Integer.valueOf
|
||||
|
||||
+1
-4
@@ -15,9 +15,6 @@ fun foo() {
|
||||
val b = arrayOfNulls<Int>(4)
|
||||
b[100] = 5
|
||||
|
||||
val x: Int? = 6
|
||||
val hc = x!!.hashCode()
|
||||
|
||||
val y: Int? = 7
|
||||
val z: Int? = 8
|
||||
val res = y === z
|
||||
@@ -26,5 +23,5 @@ fun foo() {
|
||||
val c2: Any = if (1 != one) 0 else "abc"
|
||||
}
|
||||
|
||||
// 9 java/lang/Integer.valueOf
|
||||
// 8 java/lang/Integer.valueOf
|
||||
// 0 intValue
|
||||
|
||||
Reference in New Issue
Block a user