FIR: Fix internal error on SAM with not-computed return type

^KT-52691 Fixed
This commit is contained in:
Denis.Zharkov
2022-06-09 14:07:18 +03:00
committed by Space
parent f9e00b0eb2
commit d8dad02f08
7 changed files with 47 additions and 3 deletions
@@ -0,0 +1,17 @@
// FIR_IDENTICAL
// SKIP_TXT
// ISSUE: KT-52691
fun test() = compose(C1())
class C1 : FunInterface {
override fun invoke() = C2()()
}
class C2 : FunInterface {
override fun invoke() {}
}
fun interface FunInterface : () -> Unit
fun compose(funInterfaces: FunInterface) = funInterfaces