alllex
fun bar(x: Int): Int = when (x) { 0 -> { listOf(1).forEach { return 0 } error("never") } else -> 10 }
Andreas Sinz