// IGNORE_BACKEND_K1: ANY // ^KT-63732 lateinit var foo: Any class A { inner class B(x: T) { init { foo = x } } fun foo(t: T) { object { val something: B = B(t) } } } fun box(): String { A().foo("OK") return foo as String }