fun main(args: Array) { val str: String? = "" when(str) { null -> test("") else -> test(str) } } fun test(s: String) = 1