JVM IR: Generate SAM wrapper fields as synthetic final

This commit is contained in:
Steven Schäfer
2020-10-28 17:22:39 +01:00
committed by Alexander Udalov
parent ec1d42e92b
commit 999151abac
6 changed files with 34 additions and 1 deletions
@@ -0,0 +1,16 @@
// FILE: J.java
public class J {
public static void g(Runnable r) {
r.run();
}
}
// FILE: test.kt
fun f() {
val r: () -> Unit = {}
J.g(r)
}
// 1 private final synthetic Lkotlin/jvm/functions/Function0; function