[FIR] Make result type after safe-call nullable (for nullable receiver)
This commit is contained in:
committed by
Mikhail Glukhikh
parent
f7b6fec70c
commit
672c172c99
+3
-3
@@ -45,10 +45,10 @@ FILE fqName:test fileName:/safeCallWithIncrementDecrement.kt
|
||||
FUN name:testProperty visibility:public modality:FINAL <> (nc:test.C?) returnType:kotlin.Unit
|
||||
VALUE_PARAMETER name:nc index:0 type:test.C?
|
||||
BLOCK_BODY
|
||||
VAR name:<unary> type:kotlin.Int [val]
|
||||
CALL 'public final fun <get-p> (): kotlin.Int declared in test' type=kotlin.Int origin=null
|
||||
VAR name:<unary> type:kotlin.Int? [val]
|
||||
CALL 'public final fun <get-p> (): kotlin.Int declared in test' type=kotlin.Int? origin=null
|
||||
ERROR_CALL 'Unresolved reference: R|test/p|' type=IrErrorType
|
||||
GET_VAR 'val <unary>: kotlin.Int [val] declared in test.testProperty' type=kotlin.Int origin=null
|
||||
GET_VAR 'val <unary>: kotlin.Int? [val] declared in test.testProperty' type=kotlin.Int? origin=null
|
||||
FUN name:testArrayAccess visibility:public modality:FINAL <> (nc:test.C?) returnType:kotlin.Unit
|
||||
VALUE_PARAMETER name:nc index:0 type:test.C?
|
||||
BLOCK_BODY
|
||||
|
||||
Reference in New Issue
Block a user