Files
kotlin/compiler/testData/codegen/box/casts/lambdaToUnitCast.kt

9 lines
159 B
Kotlin
Vendored

// IGNORE_BACKEND: JS
// JS backend does not support Unit well. See KT-13932
val foo: () -> Unit = {}
fun box(): String {
foo() as Unit
return "OK"
}