FIR2IR: add extension receiver parameters to functions

This commit is contained in:
Mikhail Glukhikh
2019-07-17 15:21:34 +03:00
parent be3fe9495c
commit 63b7fa70f9
63 changed files with 393 additions and 158 deletions
@@ -1,7 +1,8 @@
FILE fqName:<root> fileName:/samOperators.kt
FUN name:f visibility:public modality:FINAL <> () returnType:kotlin.Unit
BLOCK_BODY
FUN name:test1 visibility:public modality:FINAL <> () returnType:kotlin.Unit
FUN name:test1 visibility:public modality:FINAL <> ($receiver:<root>.J) returnType:kotlin.Unit
$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
@@ -10,7 +11,8 @@ FILE fqName:<root> fileName:/samOperators.kt
$this: ERROR_CALL 'Unresolved reference: this#' type=<root>.J
k: ERROR_CALL 'Unresolved reference: <Unresolved name: f>#' type=IrErrorType
m: ERROR_CALL 'Unresolved reference: <Unresolved name: f>#' type=IrErrorType
FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Unit
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
@@ -21,7 +23,8 @@ FILE fqName:<root> fileName:/samOperators.kt
k: ERROR_CALL 'Unresolved reference: <Unresolved name: f>#' type=IrErrorType
m: ERROR_CALL 'Unresolved reference: <Unresolved name: f>#' type=IrErrorType
v: ERROR_CALL 'Unresolved reference: <Unresolved name: f>#' type=IrErrorType
FUN name:test3 visibility:public modality:FINAL <> () returnType:kotlin.Unit
FUN name:test3 visibility:public modality:FINAL <> ($receiver:<root>.J) returnType:kotlin.Unit
$receiver: VALUE_PARAMETER name:<this> type:<root>.J
BLOCK_BODY
ERROR_CALL 'Unresolved reference: this#' type=IrErrorType
ERROR_CALL 'Unresolved reference: this#' type=IrErrorType