[FIR] Allow nullable receiver type in case of safe-calls
This commit is contained in:
committed by
Mikhail Glukhikh
parent
b28207deca
commit
27a1ec3817
+2
-1
@@ -31,7 +31,8 @@ FILE fqName:test fileName:/safeCallWithIncrementDecrement.kt
|
||||
FUN name:inc visibility:public modality:FINAL <> () returnType:kotlin.Int?
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public final fun inc (): kotlin.Int? declared in test'
|
||||
CALL 'public final fun inc (): kotlin.Int? declared in test' type=kotlin.Int? origin=null
|
||||
CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null
|
||||
$this: ERROR_CALL 'Unresolved reference: this#' type=kotlin.Int?
|
||||
FUN name:get visibility:public modality:FINAL <> (index:kotlin.Int) returnType:kotlin.Int
|
||||
VALUE_PARAMETER name:index index:0 type:kotlin.Int
|
||||
BLOCK_BODY
|
||||
|
||||
Reference in New Issue
Block a user