[FIR] Handle 'EnhancedNullability' more properly

This commit includes three changes:
1. 'EnhancedNullability' is no more set for declaration types
2. It is no more used for conversion types in translator
3. Translator inserts implicit not-null cast only when enhanced type is cast to not-null type.
This commit is contained in:
Mikhail Glukhikh
2020-11-09 18:51:09 +03:00
parent e7a84fd1ee
commit bc47a30dd3
21 changed files with 79 additions and 149 deletions
@@ -1,5 +1,4 @@
// !LANGUAGE: +StrictJavaNullabilityAssertions
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// FILE: inLambdaReturnWithExpectedType.kt
@@ -1,5 +1,4 @@
// TARGET_BACKEND: JVM
// IGNORE_BACKEND_FIR: JVM_IR
// FILE: nnStringVsT.kt
fun <T> useT(fn: () -> T) = fn()
@@ -1,5 +1,4 @@
// TARGET_BACKEND: JVM
// IGNORE_BACKEND_FIR: JVM_IR
// FILE: nnStringVsTAny.kt
fun <T : Any> useTAny(fn: () -> T) = fn()