FIR2IR: fix assertion in getIrFunctionSymbol (anonymous function case)

This commit is contained in:
Mikhail Glukhikh
2019-12-27 11:37:28 +03:00
parent 5e426fdc71
commit f3b5ee4cba
4 changed files with 16 additions and 6 deletions
@@ -10,4 +10,4 @@ FILE fqName:<root> fileName:/extensionLambda.kt
FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL <> () returnType:kotlin.Int
BLOCK_BODY
CALL 'public open fun <get-length> (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=null
$this: GET_VAR '<this>: kotlin.String declared in kotlin.String' type=kotlin.String origin=null
$this: ERROR_CALL 'Unresolved reference: this@R|special/anonymous|' type=kotlin.String
@@ -106,4 +106,4 @@ FILE fqName:<root> fileName:/multipleImplicitReceivers.kt
FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL <> () returnType:kotlin.Int
BLOCK_BODY
CALL 'public open fun invoke (): kotlin.Int [operator] declared in <root>.IInvoke' type=kotlin.Int origin=null
$this: GET_VAR '<this>: <root>.IInvoke declared in <root>.IInvoke' type=<root>.IInvoke origin=null
$this: ERROR_CALL 'Unresolved reference: this@R|special/anonymous|' type=<root>.IInvoke