K2: reproduce KT-61443
This commit is contained in:
committed by
Space Team
parent
e79851910e
commit
1b9197dd17
@@ -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>
|
||||
Reference in New Issue
Block a user