fun foo(x: Any): String { return when (x) { is String -> "1" else -> "2" } }