JVM IR: fix value argument offset in -Xjvm-default=compatibility mode

This commit is contained in:
Alexander Udalov
2019-12-03 10:45:45 +01:00
parent 3de6289c6c
commit d84daa0a4b
2 changed files with 9 additions and 4 deletions
@@ -5,8 +5,10 @@
// WITH_RUNTIME
interface A {
@JvmDefault
fun String.foo() = "OK"
fun String.foo(k: String) = "O" + k
}
fun box(): String =
object : A { fun box() = "FAIL".foo() }.box()
object : A {
fun box() = "FAIL".foo("K")
}.box()