JVM IR: Generate synthetic final implementation methods in SAM wrappers

This commit is contained in:
Steven Schäfer
2020-10-28 18:00:44 +01:00
committed by Alexander Udalov
parent a475fa2a21
commit 68e2d0d245
5 changed files with 38 additions and 1 deletions
@@ -0,0 +1,21 @@
// FILE: J.java
public class J {
public static void g(Runnable r) {
r.run();
}
}
// FILE: test.kt
fun nonInlineFun() {
val f = {}
J.g(f)
}
inline fun inlineFun() {
val f = {}
J.g(f)
}
// 2 public final synthetic run\(\)V