FIR2IR: add implicit NOT_NULL cast if needed

This commit is contained in:
Jinseong Jeon
2020-10-18 23:36:47 -07:00
committed by Mikhail Glukhikh
parent eeda48e63e
commit 46cc01602e
44 changed files with 181 additions and 88 deletions
@@ -1,5 +1,5 @@
public open class NotNullField : R|kotlin/Any| {
@R|org/jetbrains/annotations/NotNull|() public open field hi: R|kotlin/String|
@R|org/jetbrains/annotations/NotNull|() public open field hi: R|@EnhancedNullability kotlin/String|
public constructor(): R|test/NotNullField|
@@ -1,5 +1,5 @@
public open class NotNullIntArray : R|kotlin/Any| {
@R|org/jetbrains/annotations/NotNull|() public open fun hi(): R|kotlin/IntArray|
@R|org/jetbrains/annotations/NotNull|() public open fun hi(): R|@EnhancedNullability kotlin/IntArray|
public constructor(): R|test/NotNullIntArray|
@@ -1,5 +1,5 @@
public open class NotNullMethod : R|kotlin/Any| {
@R|org/jetbrains/annotations/NotNull|() public open fun hi(): R|kotlin/String|
@R|org/jetbrains/annotations/NotNull|() public open fun hi(): R|@EnhancedNullability kotlin/String|
public constructor(): R|test/NotNullMethod|
@@ -1,5 +1,5 @@
public open class NotNullObjectArray : R|kotlin/Any| {
@R|org/jetbrains/annotations/NotNull|() public open fun hi(): R|ft<kotlin/Array<ft<kotlin/Any, kotlin/Any?>!>, kotlin/Array<out ft<kotlin/Any, kotlin/Any?>!>>|
@R|org/jetbrains/annotations/NotNull|() public open fun hi(): R|ft<@EnhancedNullability kotlin/Array<ft<kotlin/Any, kotlin/Any?>!>, kotlin/Array<out ft<kotlin/Any, kotlin/Any?>!>>|
public constructor(): R|test/NotNullObjectArray|
@@ -1,5 +1,5 @@
public open class NotNullParameter : R|kotlin/Any| {
public open fun hi(@R|org/jetbrains/annotations/NotNull|() param: R|kotlin/String|): R|kotlin/Unit|
public open fun hi(@R|org/jetbrains/annotations/NotNull|() param: R|@EnhancedNullability kotlin/String|): R|kotlin/Unit|
public constructor(): R|test/NotNullParameter|