// HIGHLIGHT: GENERIC_ERROR_OR_WARNING fun test(n: Int): String { var res: String res = when (n) { 1 -> "one" else -> "two" } return res }