class Klass fun test(obj: Any): String { return when (obj) { is String -> "string" is Int -> "int" is Klass<*> -> "class" else -> "unknown" } }