Files
kotlin-fork/compiler/testData/codegen/box/invokedynamic/sam/simpleFunInterfaceConstructor.kt
T
2021-02-12 16:52:30 +03:00

15 lines
206 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// SAM_CONVERSIONS: INDY
fun interface KRunnable {
fun run()
}
var test = "Failed"
fun box(): String {
KRunnable { test = "OK" }.run()
return test
}