FIR2IR: set 'SetField' type to Unit, convert explicit 'this' references

This commit is contained in:
Mikhail Glukhikh
2019-08-26 19:32:21 +03:00
parent 6604539154
commit da22898a19
53 changed files with 171 additions and 262 deletions
@@ -5,21 +5,21 @@ FILE fqName:<root> fileName:/samOperators.kt
$receiver: VALUE_PARAMETER name:<this> type:<root>.J
BLOCK_BODY
CALL 'public open fun get (k: java.lang.Runnable?): kotlin.Unit declared in <root>.J' type=kotlin.Unit origin=null
$this: ERROR_CALL 'Unresolved reference: this#' type=<root>.J
$this: GET_VAR '<this>: <root>.J declared in <root>.test1' type=<root>.J origin=null
k: ERROR_CALL 'Unsupported callable reference: ::<Unresolved name: f>#' type=IrErrorType
CALL 'public open fun get (k: java.lang.Runnable?, m: java.lang.Runnable?): kotlin.Unit declared in <root>.J' type=kotlin.Unit origin=null
$this: ERROR_CALL 'Unresolved reference: this#' type=<root>.J
$this: GET_VAR '<this>: <root>.J declared in <root>.test1' type=<root>.J origin=null
k: ERROR_CALL 'Unsupported callable reference: ::<Unresolved name: f>#' type=IrErrorType
m: ERROR_CALL 'Unsupported callable reference: ::<Unresolved name: f>#' type=IrErrorType
FUN name:test2 visibility:public modality:FINAL <> ($receiver:<root>.J) returnType:kotlin.Unit
$receiver: VALUE_PARAMETER name:<this> type:<root>.J
BLOCK_BODY
CALL 'public open fun set (k: java.lang.Runnable?, v: java.lang.Runnable?): kotlin.Unit declared in <root>.J' type=kotlin.Unit origin=null
$this: ERROR_CALL 'Unresolved reference: this#' type=<root>.J
$this: GET_VAR '<this>: <root>.J declared in <root>.test2' type=<root>.J origin=null
k: ERROR_CALL 'Unsupported callable reference: ::<Unresolved name: f>#' type=IrErrorType
v: ERROR_CALL 'Unsupported callable reference: ::<Unresolved name: f>#' type=IrErrorType
CALL 'public open fun set (k: java.lang.Runnable?, m: java.lang.Runnable?, v: java.lang.Runnable?): kotlin.Unit declared in <root>.J' type=kotlin.Unit origin=null
$this: ERROR_CALL 'Unresolved reference: this#' type=<root>.J
$this: GET_VAR '<this>: <root>.J declared in <root>.test2' type=<root>.J origin=null
k: ERROR_CALL 'Unsupported callable reference: ::<Unresolved name: f>#' type=IrErrorType
m: ERROR_CALL 'Unsupported callable reference: ::<Unresolved name: f>#' type=IrErrorType
v: ERROR_CALL 'Unsupported callable reference: ::<Unresolved name: f>#' type=IrErrorType