Add tests for merging SAM wrappers and references

This commit is contained in:
pyos
2019-04-03 12:52:33 +02:00
committed by max-kammerer
parent e05c151a73
commit 23d742237f
4 changed files with 59 additions and 0 deletions
@@ -0,0 +1,16 @@
// 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