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,14 @@
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// SAM_CONVERSIONS: INDY
// FILE: capturingLambda.kt
fun box(): String {
val co = 'O'
val lambda = { co.toString() + "K" }
return Sam(lambda).get()
}
// FILE: Sam.java
public interface Sam {
String get();
}