[FIR] Assume nullable types as good types for ILT approximation

#KT-41982 Fixed
This commit is contained in:
Dmitriy Novozhilov
2020-09-18 13:48:29 +03:00
parent f069857492
commit 40a9bb6eac
10 changed files with 75 additions and 11 deletions
@@ -1,5 +1,3 @@
// TARGET_BACKEND: JVM
// IGNORE_BACKEND_FIR: JVM_IR
// WITH_RUNTIME
// FULL_JDK
@@ -20,4 +18,4 @@ fun box(): String {
return targets.toList().toString()
}
return "OK"
}
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// FILE: StringHolder.java
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// WITH_REFLECT
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// WITH_REFLECT
@@ -63,9 +63,9 @@ FILE fqName:<root> fileName:/primitivesImplicitConversions.kt
VAR name:test2 type:kotlin.Long [val]
CONST Long type=kotlin.Long value=42
VAR name:test3 type:kotlin.Long? [val]
CONST Int type=kotlin.Int value=42
CONST Long type=kotlin.Long value=42
VAR name:test4 type:kotlin.Long? [val]
CONST Int type=kotlin.Int value=-1
CONST Long type=kotlin.Long value=-1
VAR name:test5 type:kotlin.Long? [val]
CONST Int type=kotlin.Int value=-1
VAR name:test6 type:kotlin.Short? [val]