K2: add test for KT-56954

This commit is contained in:
Mikhail Glukhikh
2023-03-08 17:15:22 +01:00
committed by Space Team
parent f946ddeb40
commit 7a6ff5de34
5 changed files with 35 additions and 0 deletions
@@ -0,0 +1,8 @@
FILE: lambdaForKfunction.kt
public final fun foo(arg: R|kotlin/reflect/KFunction0<kotlin/Unit>|): R|kotlin/Unit| {
}
public final fun main(): R|kotlin/Unit| {
R|/foo|(fun <anonymous>(): R|kotlin/Unit| <inline=NoInline> {
}
)
}