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