JVM_IR indy-SAM conversions, 1st passing tests

KT-44278 KT-26060 KT-42621
This commit is contained in:
Dmitry Petrov
2021-01-14 17:08:17 +03:00
parent c13949d322
commit 3140cca050
37 changed files with 1144 additions and 58 deletions
@@ -0,0 +1,17 @@
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// SAM_CONVERSIONS: INDY
// FILE: simpleIndySam.kt
var test = "Failed"
fun box(): String {
J.run { test = "OK" }
return test
}
// FILE: J.java
public class J {
public static void run(Runnable r) {
r.run();
}
}