fun a(x: Int) { val t = when { x > 0 -> x * x + 1 x < 0 -> x + x else -> 0 } }