[Tests] Add regression test for #KT-63732
This commit is contained in:
committed by
Space Team
parent
9ea4afe7c8
commit
11ab90ecbd
@@ -0,0 +1,23 @@
|
||||
// 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
|
||||
}
|
||||
Reference in New Issue
Block a user