JVM_IR: Fix inlining of interface methods

This commit is contained in:
Steven Schäfer
2019-07-19 10:49:44 +02:00
committed by max-kammerer
parent bdec8b04e8
commit 9816e62d08
4 changed files with 28 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
interface A {
private inline fun <reified T> callDefault(b: () -> String): String {
"String" is T
return b()
}
fun ok() = callDefault<String> { "OK" }
}
class B : A
fun box(): String {
return B().ok()
}
// 0 INVOKESTATIC A$DefaultImpls.callDefault