Files
kotlin-fork/compiler/testData/codegen/box/innerNested/kt63732.kt
T
2023-11-23 14:24:47 +00:00

23 lines
324 B
Kotlin
Vendored

// 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
}