fun test(x: Any) { if (x !is String) return class Local(s: String = x) { fun foo(s: String = x): String = s } }