| // RUN_PIPELINE_TILL: CODEGEN | |
| // LANGUAGE: +UnitConversionsOnArbitraryExpressions | |
| // ISSUE: KT-84393 | |
| // DIAGNOSTICS: -UNUSED_PARAMETER | |
| fun interface KRunnable { | |
| fun run() | |
| } | |
| fun interface KSuspendRunnable { | |
| suspend fun run() | |
| } | |
| fun useKRunnable(r: KRunnable) {} | |
| fun useKSuspendRunnable(r: KSuspendRunnable) {} | |
| val intLambda: () -> Int = { 42 } | |
| fun test() { | |
| useKRunnable(intLambda) | |
| useKSuspendRunnable(intLambda) | |
| } | |
| /* GENERATED_FIR_TAGS: funInterface, functionDeclaration, functionalType, integerLiteral, interfaceDeclaration, | |
| lambdaLiteral, propertyDeclaration, samConversion, suspend */ |