Files
kotlin-fork/compiler/testData/codegen/box/fakeOverride/methodOfAnyFromInterface.kt
T
2023-09-15 09:26:54 +00:00

15 lines
207 B
Kotlin
Vendored

interface I1
interface I2 {
override fun toString(): String
}
interface I3 : I1, I2
class I3Impl : I3 {
override fun toString() = "OK"
}
fun foo(i3: I3) = i3.toString()
fun box() = foo(I3Impl())