FIR2IR KT-47939 callable references to fun interface constructors

This commit is contained in:
Dmitry Petrov
2021-11-29 18:51:01 +03:00
committed by TeamCityServer
parent f55f880726
commit 11daed8b01
7 changed files with 215 additions and 45 deletions
@@ -32,11 +32,11 @@ fun test1a(): KFunction1<@ParameterName(name = "function") Function0<Unit>, KRun
}
}
fun test1b(): KFunction<Runnable> {
fun test1b(): KFunction<KRunnable> {
return { // BLOCK
local fun Runnable(function: Function0<Unit>): Runnable function /*-> Runnable */
local fun KRunnable(function: Function0<Unit>): KRunnable function /*-> KRunnable */
::Runnable
::KRunnable
}
}