Files
kotlin/compiler/testData/codegen/bytecodeText/when/whenNull.kt
2018-12-21 16:20:45 +01:00

11 lines
290 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
fun test(a: Any?, b: Any?, c: Any?) {
when (null) {
a -> throw IllegalArgumentException("a is null")
b -> throw IllegalArgumentException("b is null")
c -> throw IllegalArgumentException("c is null")
}
}
// 0 areEqual
// 3 IFNONNULL