FIR2IR: Fix inheritance case from built-in interface with default methods

This commit is contained in:
Denis.Zharkov
2021-03-31 17:21:51 +03:00
parent e5ea7f5b4e
commit d685e2aac7
7 changed files with 51 additions and 0 deletions
@@ -0,0 +1,16 @@
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// FULL_JDK
// WITH_RUNTIME
import java.util.function.Consumer
class A : Iterable<String> {
override fun iterator(): Iterator<String> = listOf("OK").iterator()
}
fun box(): String {
var res = ""
A().forEach(Consumer { res += it })
return res
}