JVM_IR indy-SAM on functional expression

This commit is contained in:
Dmitry Petrov
2021-02-17 13:44:33 +03:00
parent 134fda8bad
commit 6d019d9544
29 changed files with 634 additions and 8 deletions
@@ -0,0 +1,15 @@
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// SAM_CONVERSIONS: INDY
// FILE: capturedSamArgument.kt
fun box(): String {
var lambda = { "OK" }
val sam = Sam(lambda)
lambda = { "Failed" }
return sam.get()
}
// FILE: Sam.java
public interface Sam {
String get();
}