Files
kotlin-fork/compiler/testData/ir/irText/firProblems/substitutionOverrideWithDelegate.kt
T
Sergej Jaskiewicz da9f0e7af8 [test] Get rid of SKIP_SIGNATURE_DUMP directive in irText tests
Sometimes there are legitimate reasons to have two separate signature
dumps for K1 and K2.

^KT-61797 Fixed
2024-01-15 13:10:19 +00:00

20 lines
302 B
Kotlin
Vendored

// WITH_STDLIB
// TARGET_BACKEND: JVM
// ISSUE: KT-61443
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>