Files
kotlin-fork/compiler/testData/codegen/bytecodeText/sam/samWrapperOfLambda.kt
T
Dmitry Petrov 052f6929c9 JVM_IR indy SAM conversions: update tests
KT-44278 KT-26060 KT-42621
2021-02-12 16:52:30 +03:00

22 lines
315 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:
// JVM_TEMPLATES:
// 1 NEW
// 0 INVOKEINTERFACE
// JVM_IR_TEMPLATES:
// 0 NEW
// 0 INVOKEINTERFACE