mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
9 lines
159 B
Kotlin
Vendored
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"
|
|
} |