fun test(a: Any?) { when (a) { is String -> { val s = a s.length } "" -> { val s = a s.hashCode() } } }