//KT-1703 Reference to label is unresolved fun test() { val ints = Array(2, { null }) ints.forEach lit@ { if (it == null) return@lit use(it + 5) } } fun Array.forEach(operation: (T) -> Unit) { for (element in this) operation(element) } fun use(a: Any?) = a