Files
kotlin-fork/compiler/testData/codegen/box/casts/unitAsSafeAny.kt
T
2020-11-09 16:04:43 +03:00

11 lines
207 B
Kotlin
Vendored

// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: UNIT_ISSUES
fun println(s: String) {
}
fun box(): String {
val x = println(":Hi!") as? Any
if (x != Unit) return "Fail: $x"
return "OK"
}