// IGNORE_BACKEND_FIR: JVM_IR // See KT-14242 var x = 1 fun box(): String { val testArray: Array? = when (1) { x -> null else -> arrayOfNulls(0) } // Must not be NPE here val size = testArray?.size return size?.toString() ?: "OK" }