mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
17 lines
245 B
Kotlin
Vendored
17 lines
245 B
Kotlin
Vendored
// FILE: JFoo.java
|
|
|
|
public class JFoo {
|
|
public static void foo(Runnable f) {
|
|
f.run();
|
|
}
|
|
}
|
|
|
|
// FILE: Test.kt
|
|
fun test() {
|
|
JFoo.foo({})
|
|
}
|
|
|
|
// Lambda inlined into run(), no wrapper class generated:
|
|
// 1 NEW
|
|
// 0 INVOKEINTERFACE
|