Implicit nothing type argument: handle nullable case properly

#KT-41620 Fixed
This commit is contained in:
Mikhail Glukhikh
2021-04-07 12:57:02 +03:00
parent 115e2673ae
commit c75331bf2a
9 changed files with 66 additions and 5 deletions
@@ -119,5 +119,5 @@ fun <T : <!FINAL_UPPER_BOUND!>String<!>> T?.case_11() = this
fun case_11() {
var x: Int? = 10
x = null
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Int? & kotlin.Nothing?")!>x<!>.case_11()
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Int? & kotlin.Nothing?")!>x<!>.<!IMPLICIT_NOTHING_TYPE_ARGUMENT_IN_RETURN_POSITION!>case_11<!>()
}