JVM IR: Generate SAM wrapper fields as synthetic final
This commit is contained in:
committed by
Alexander Udalov
parent
ec1d42e92b
commit
999151abac
+16
@@ -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
|
||||
Reference in New Issue
Block a user