fun main(args: Array) { foo(0) println("Ok") } fun foo(x: Int) { when (x) { 0 -> 0 } }