Fix test and unmute it for JVM
This commit is contained in:
committed by
teamcityserver
parent
d48557ed53
commit
3bef04cf5e
@@ -1,18 +1,16 @@
|
||||
// !LANGUAGE: +DefinitelyNonNullableTypes
|
||||
// IGNORE_BACKEND: JVM
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// IGNORE_BACKEND: JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: WASM
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// FIR status: not supported in JVM
|
||||
|
||||
fun <T> test(t: T) = t as (T & Any)
|
||||
|
||||
fun box(): String {
|
||||
fun box(): String =
|
||||
try {
|
||||
test<Any?>(null)
|
||||
"FAIL: expected NPE"
|
||||
} catch (ex: NullPointerException) {
|
||||
return "FAIL: expected NPE"
|
||||
}
|
||||
return test("OK")
|
||||
}
|
||||
test("OK")
|
||||
}
|
||||
Reference in New Issue
Block a user