K2: reproduce KT-61443

This commit is contained in:
Mikhail Glukhikh
2023-09-13 15:38:32 +02:00
committed by Space Team
parent e79851910e
commit 1b9197dd17
6 changed files with 216 additions and 0 deletions
@@ -0,0 +1,20 @@
// WITH_STDLIB
// TARGET_BACKEND: JVM
// ISSUE: KT-61443
// SKIP_SIGNATURE_DUMP
fun foo() = DelegatedB()()
interface A {
operator fun invoke() {}
operator fun invoke(value: String) = bar(value)
}
fun A.bar(value: String) {}
open class DelegatedB : B<String> by C()
interface B<out T> : A
class C<out T> : B<T>