Files
kotlin-fork/compiler/testData/codegen/box/sam/kt59858.kt
T
2023-07-06 12:39:46 +00:00

17 lines
238 B
Kotlin
Vendored

// MODULE: A
// FILE: A.kt
interface Base {
fun f() : Any
}
fun interface Child : Base {
override fun f() : Int
}
// MODULE: B(A)
// FILE: B.kt
fun box(): String {
if (Child { 10 }.f() != 10) return "FAIL"
return "OK"
}