Define fail in the test to pass on JVM and Native

This commit is contained in:
Zalim Bashorov
2023-07-21 16:37:38 +02:00
committed by Space Team
parent b1a4d354f1
commit d6ba233bbe
+2
View File
@@ -30,3 +30,5 @@ fun test(b0: Int) = when {
b0 and 0xf8 == 0xf0 -> 3
else -> -1
}
fun fail(message: String): Nothing = throw Exception(message)