fun test(a: Any?, flag: Boolean, x: Any?) { if (a !is String) return a.length val b: Any? if (flag) { b = a b.length } else { b = x b.length() } }