jvm-abi-gen: Strip inline functions in private classes

Inline functions in private classes can only be accessed from Java and
we do not need to preserve their bodies for the abi.
This commit is contained in:
Steven Schäfer
2021-08-06 10:27:13 +02:00
committed by Alexander Udalov
parent 3ffe495346
commit 5059513106
12 changed files with 111 additions and 12 deletions
@@ -0,0 +1,11 @@
class A {
private class B {
inline fun test(crossinline s: () -> Unit) {
object {
fun run() {
s()
}
}.run()
}
}
}